package a.f.d;

import a.c.ab;
import a.c.d;
import a.c.e;
import a.c.k;
import a.c.m;
import a.c.n;
import a.c.z;
import a.f.*;

import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import a.f.d.t;
import a.f.d.bb;
import a.f.d.o;

class x
{
  private static d_ a = new d_(0.0D, 0.0D, 0.0D, 0.0D);
  private a.f.o b;
  private a.c.x c;
  private a.c.x d;
  private n e;
  private a.c.x f;
  private k g;
  private n h;
  private k i;
  private boolean j = true;
  private boolean k;
  private boolean l;
  private z m;
  private boolean n = false;
  private double o = 20.0D;
  private double p = 0.5D;
  private t q;
  private o r;
  private bb s;
  private a.c.x t;
  private a.c.x u;
  private a.c.x v;
  private a.c.x w;
  private a.c.x x;
  private k y;
  private k z;
  private n A;
  private n B;
  private Map C;
  private k D;
  private k E;
  private n F;
  private n G;
  private a.c.x H;
  private a.c.x I;
  private n J;
  private n K;
  private z L;
  private boolean M = false;
  private boolean N;
  private static final cd O = cd.a((byte)2);
  private static final cd P = cd.a((byte)1);
  private double Q;
  private double R;
  
  public x(a.f.o paramo, a.c.x paramx1, a.c.x paramx2, n paramn, z paramz)
  {
    if (i1 == 0)
    {
      this.N = true;
      this.b = paramo;
      this.L = paramz;
      this.c = paramx1;
      this.d = paramx2;
      this.e = paramn;
      this.H = c.a(paramo);
    }
    this.k = ((paramo.c(ed.a) != null) || (paramo.c(ed.b) != null));
    this.l = ((i1 != 0) || ((paramo.c(ed.c) != null) || (paramo.c(ed.d) != null)));
    if (i1 == 0) {
      if (!this.k)
      {
        if (i1 != 0) {
          break label183;
        }
        if (!this.l) {
          break label174;
        }
      }
    }
    g();
    label174:
    if (i1 == 0)
    {
      if (this.l)
      {
        label183:
        this.F = paramo.C();
        this.G = paramo.C();
        this.s = new bb(paramo, paramx1, paramz, paramx2, this.F, this.G, this.A, this.B);
      }
      this.q = new t(paramo, this.H, paramx1, paramz, paramx2, paramn, this.A, this.B);
      this.q.a(this.N);
    }
    this.r = new o(paramo, this);
  }
  
  public void a(boolean paramBoolean)
  {
    this.M = paramBoolean;
  }
  
  public void b(boolean paramBoolean)
  {
    this.N = paramBoolean;
    this.q.a(paramBoolean);
  }
  
  public void a(a.c.x paramx, k paramk1, n paramn, k paramk2)
  {
    int i1 = f.o;
    this.f = paramx;
    this.h = paramn;
    this.g = paramk1;
    this.i = paramk2;
    if (i1 == 0) {
      if (this.s != null) {
        this.s.a(paramx, paramk1, paramn, paramk2);
      }
    }
    if ((i1 != 0) || (this.q != null)) {
      this.q.a(paramx, paramk1, paramn, paramk2);
    }
  }
  
  public void a(double paramDouble)
  {
    this.p = paramDouble;
  }
  
  public void b(double paramDouble)
  {
    this.o = paramDouble;
    this.q.a(paramDouble);
    this.r.a(paramDouble);
  }
  
  public double a()
  {
    return this.o;
  }
  
  public void d(boolean paramBoolean)
  {
    this.n = paramBoolean;
  }
  
  public boolean b()
  {
    return this.n;
  }
  
  public void c()
  {
    int i2 = f.o;
    int i1 = f.n;
    if (i2 == 0)
    {
      if (this.k)
      {
        m localm = this.b.w();
        label94:
        do
        {
          if (!localm.e()) {
            break;
          }
          d locald = localm.a();
          cd localcd1 = b(locald);
          if (i1 != 0) {
            return;
          }
          if ((i2 != 0) || (localcd1 != null))
          {
            if (i2 != 0) {
              break label94;
            }
            if (localcd1.a()) {}
          }
          else
          {
            this.b.a(locald, a.d.w.c);
          }
          cd localcd2 = d(locald);
          if ((i2 != 0) || (localcd2 != null))
          {
            if (i2 != 0) {
              continue;
            }
            if (localcd2.a()) {}
          }
          else
          {
            this.b.b(locald, a.d.w.c);
          }
          localm.f();
        } while (i1 == 0);
      }
      if (i2 != 0) {}
    }
    else
    {
      wc.c(this.b);
    }
    this.r.b();
  }
  
  public int a(int paramInt, ab paramab)
  {
    int i2 = f.o;
    int i1 = f.n;
    if (this.k)
    {
      a.c.v localv = paramab.f();
      do
      {
        if (localv == null) {
          break;
        }
        d locald = (d)localv.c();
        a.d.w localw = this.b.p(locald);
        this.b.a(locald, this.b.q(locald));
        this.b.b(locald, localw);
        if (i2 != 0) {
          return paramInt;
        }
        if (i1 != 0) {
          break label169;
        }
        if ((i2 != 0) || (this.A != null)) {
          if (i2 == 0)
          {
            if (this.B != null) {
              this.A.a(locald, this.z.get(locald));
            }
          }
          else {
            this.B.a(locald, this.y.get(locald));
          }
        }
        localv = localv.a();
      } while (i1 == 0);
    }
    if (i2 == 0) {
      label169:
      this.q.b();
    }
    return paramInt;
  }
  
  public int a(int paramInt)
  {
    if ((f.o != 0) || (this.s != null)) {
      paramInt = d(paramInt);
    }
    return paramInt;
  }
  
  public int b(int paramInt)
  {
    k();
    return paramInt;
  }
  
  public int c(int paramInt)
  {
    paramInt = this.q.a(paramInt);
    return paramInt;
  }
  
  public a.c.bb[] a(a.c.bb[] paramArrayOfbb)
  {
    z localz = new z(paramArrayOfbb);
    this.q.a(localz);
    this.r.c();
    this.r.e();
    this.r.b();
    return (a.c.bb[])localz.toArray(new a.c.bb[localz.size()]);
  }
  
  public a.c.bb[] b(a.c.bb[] paramArrayOfbb)
  {
    z localz = new z(paramArrayOfbb);
    k();
    this.q.b(localz);
    if (f.o == 0)
    {
      if (this.s != null) {
        this.s.b(localz);
      }
      l();
    }
    a(localz);
    return (a.c.bb[])localz.toArray(new a.c.bb[localz.size()]);
  }
  
  public a.c.bb[] d(a.c.bb[] paramArrayOfbb)
  {
    return paramArrayOfbb;
  }
  
  public void e(a.c.bb[] paramArrayOfbb)
  {
    n();
    m();
  }
  
  public void d() {}
  
  public void e()
  {
    int i1 = f.o;
    if (((i1 != 0) || (this.s != null)) && ((i1 != 0) || (this.s.a()))) {
      this.s.b();
    }
  }
  
  public void f()
  {
    int i1 = f.o;
    if (i1 == 0) {
      if (this.q != null)
      {
        this.q.f();
        this.q = null;
      }
    }
    if (i1 == 0) {
      if (this.r != null)
      {
        this.r.d();
        this.r = null;
      }
    }
    if (i1 == 0) {
      if (this.s != null)
      {
        this.s.c();
        this.b.a(this.F);
        this.b.a(this.G);
        this.F = (this.G = null);
        this.s = null;
      }
    }
    if (i1 == 0)
    {
      if (this.x != null)
      {
        this.b.a(this.x);
        this.x = null;
      }
      j();
      this.c = null;
      this.L = null;
      this.I = null;
      this.x = null;
      this.J = null;
      this.K = null;
      this.m = null;
      this.b = null;
      this.H = null;
      this.h = null;
      this.i = null;
      this.f = null;
    }
    this.g = null;
  }
  
  private int d(int paramInt)
  {
    int i3 = f.o;
    int i2 = f.n;
    k localk1 = this.b.c(ed.c);
    k localk2 = this.b.c(ed.d);
    Object localObject1 = this.b.w();
    do
    {
      if (!((m)localObject1).e()) {
        break;
      }
      d locald = ((m)localObject1).a();
      if (i2 != 0) {
        break label204;
      }
      if (this.e.getBool(locald))
      {
        if (i3 == 0) {
          if (localk1 != null) {
            this.G.a(locald, localk1.get(locald));
          }
        }
        if (localk2 != null)
        {
          this.F.a(locald, localk2.get(locald));
          if (i3 != 0) {
            continue;
          }
          if (i2 == 0) {}
        }
      }
      else
      {
        if (i3 == 0) {
          if (localk1 != null) {
            this.F.a(locald, localk1.get(locald));
          }
        }
        if (localk2 != null) {
          this.G.a(locald, localk2.get(locald));
        }
      }
      ((m)localObject1).f();
    } while (i2 == 0);
    label204:
    localObject1 = new a.c.bb[paramInt];
    int i1 = localObject1.length - 1;
    do
    {
      while (i2 == 0)
      {
        if (i1 < 0) {
          break;
        }
        localObject1[i1] = new a.c.bb();
        i1--;
      }
    } while (i3 != 0);
    Object localObject2 = this.b.v();
    do
    {
      if (!((a.c.w)localObject2).e()) {
        break;
      }
      e locale = ((a.c.w)localObject2).d();
      localObject1[this.c.getInt(locale)].add(locale);
      ((a.c.w)localObject2).f();
      if (i3 != 0) {
        break label357;
      }
      if (i2 != 0) {
        break label354;
      }
    } while (i2 == 0);
    if ((i3 == 0) && (this.s != null))
    {
      localObject2 = new z((Object[])localObject1);
      this.s.a((z)localObject2);
      return ((z)localObject2).size();
    }
    label354:
    label357:
    return localObject1.length;
  }
  
  private void g()
  {
    int i2 = f.o;
    int i1 = f.n;
    if (i2 == 0) {
      if (this.A == null) {
        this.A = this.b.C();
      }
    }
    if (i2 == 0)
    {
      if (this.B == null) {
        this.B = this.b.C();
      }
      this.y = this.b.c(ed.a);
      this.z = this.b.c(ed.b);
      this.b.a(ed.a, this.A);
      this.b.a(ed.b, this.B);
      if (i2 != 0) {}
    }
    else if (this.y == null)
    {
      if ((i2 == 0) && (this.z == null)) {
        return;
      }
    }
    m localm = this.b.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      if (i2 == 0) {
        if (this.y != null) {
          this.A.a(locald, this.y.get(locald));
        }
      }
      if ((i2 != 0) || (this.z != null)) {
        this.B.a(locald, this.z.get(locald));
      }
      localm.f();
    } while (i1 == 0);
  }
  
  n h()
  {
    return this.A;
  }
  
  n i()
  {
    return this.B;
  }
  
  private void j()
  {
    int i1 = f.o;
    this.b.j(ed.a);
    if (i1 == 0)
    {
      if (this.y != null)
      {
        this.b.a(ed.a, this.y);
        this.y = null;
      }
      this.b.j(ed.b);
      if (i1 != 0) {}
    }
    else if (this.z != null)
    {
      this.b.a(ed.b, this.z);
      this.z = null;
    }
    if (i1 == 0)
    {
      if (this.A != null)
      {
        this.b.a(this.A);
        this.A = null;
      }
      if (i1 != 0) {}
    }
    else
    {
      if (this.B == null) {
        return;
      }
      this.b.a(this.B);
    }
    this.B = null;
  }
  
  private void k()
  {
    int i4 = f.o;
    int i3 = f.n;
    if (i4 == 0) {
      if (!this.k) {
        return;
      }
    }
    m localm = this.b.w();
    label179:
    label254:
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald1 = localm.a();
      int i1 = this.d.get(locald1.e()) != null ? 1 : 0;
      int i2 = this.d.get(locald1.f()) != null ? 1 : 0;
      d locald2;
      if (i4 == 0) {
        if (i1 != 0)
        {
          if (i4 != 0) {
            break label179;
          }
          if (i2 == 0)
          {
            locald2 = (d)this.d.get(locald1.e());
            if (i4 != 0) {
              continue;
            }
            if (this.B.get(locald1) != null) {
              break label254;
            }
            this.B.a(locald1, this.B.get(locald2));
            if (i4 != 0) {
              continue;
            }
            if (i3 == 0) {
              break label254;
            }
          }
        }
      }
      if (i4 == 0)
      {
        if (i1 == 0)
        {
          if (i4 != 0) {
            continue;
          }
          if (i2 != 0)
          {
            locald2 = (d)this.d.get(locald1.f());
            if (i4 != 0) {
              continue;
            }
            if (this.A.get(locald1) == null) {
              this.A.a(locald1, this.A.get(locald2));
            }
          }
        }
        localm.f();
      }
    } while (i3 == 0);
  }
  
  private void a(z paramz)
  {
    int i14 = f.o;
    int i13 = f.n;
    this.x = this.b.B();
    this.I = this.b.B();
    this.J = this.b.C();
    this.K = this.b.C();
    ab localab1 = new ab();
    ab localab2 = new ab();
    this.m = new z();
    a.c.x localx = this.b.B();
    Object localObject1 = paramz.f();
    if (localObject1 != null) {}
    label178:
    label180:
    while (i14 != 0)
    {
      localObject2 = (a.c.bb)((a.c.v)localObject1).c();
      int i1 = 0;
      localObject3 = ((a.c.bb)localObject2).f();
      do
      {
        do
        {
          if (localObject3 == null) {
            break;
          }
          localx.a(((a.c.v)localObject3).c(), i1);
          localObject3 = ((a.c.v)localObject3).a();
          i1++;
          if (i14 != 0) {
            break label180;
          }
          if (i13 != 0) {
            break label178;
          }
        } while (i13 == 0);
      } while (i14 != 0);
      localObject1 = ((a.c.v)localObject1).a();
      if (i13 == 0) {
        break;
      }
    }
    localObject1 = new eb(localx, (byte)0);
    Object localObject2 = new eb(localx, (byte)1);
    b_ localb_ = new b_((Comparator)localObject1, new eb(localx, (byte)3));
    Object localObject3 = new a_((Comparator)localObject2, new eb(localx, (byte)4));
    int i2 = 0;
    a.c.v localv1 = paramz.f();
    if (localv1 != null) {}
    label291:
    label303:
    label580:
    label855:
    label1263:
    label1520:
    label1528:
    label1533:
    label1918:
    while (i14 != 0)
    {
      a.c.bb localbb = (a.c.bb)localv1.c();
      c_ localc_ = new c_(localbb);
      this.m.add(localc_);
      do
      {
        if (i13 != 0) {
          return;
        }
        a.c.v localv2 = localbb.f();
        do
        {
          if (localv2 == null) {
            break label4634;
          }
          e locale1 = (e)localv2.c();
          if (i13 != 0) {
            break;
          }
          if (this.x.get(locale1) == null)
          {
            zc localzc = this.b.d(locale1);
            localc_.g = Math.max(localc_.g, localzc.d());
            if (this.d.get(locale1) == null)
            {
              d_ locald_1 = new d_(localzc);
              this.I.a(locale1, locald_1);
              locale1.b(localb_);
              locale1.a((Comparator)localObject3);
              Object localObject4;
              cd localcd;
              Object localObject5;
              Object localObject6;
              Object localObject7;
              int i4;
              Object localObject8;
              int i6;
              Object localObject9;
              int i8;
              if (locale1.d() > 1)
              {
                localObject4 = locale1.k();
                localcd = d((d)localObject4);
                localObject5 = locale1.i();
                localObject6 = d((d)localObject5);
                if (((i14 != 0) || ((localcd == null) || ((i14 != 0) || (!localcd.a())))) && ((i14 != 0) || (localObject6 != null)) && (((cd)localObject6).a()))
                {
                  localObject7 = ((d)localObject4).l();
                  do
                  {
                    do
                    {
                      if (localObject7 != null) {
                        break label580;
                      }
                      while (i14 != 0)
                      {
                        localcd = d((d)localObject7);
                        if (i14 != 0) {
                          break label291;
                        }
                        if (i13 != 0) {
                          break;
                        }
                        if (localcd != null)
                        {
                          if (i14 == 0) {
                            if (localcd.a()) {
                              continue;
                            }
                          }
                        }
                        else
                        {
                          localObject4 = localObject7;
                          localObject7 = ((d)localObject7).l();
                        }
                        if (i13 == 0) {
                          break label523;
                        }
                      }
                      if (localObject4 == null) {
                        break label768;
                      }
                      i4 = 0;
                      localObject8 = localObject5;
                      i6 = 0;
                      localObject9 = localObject5;
                      do
                      {
                        do
                        {
                          if (localObject9 == localObject4) {
                            break;
                          }
                          i8 = ((Comparator)localObject2).compare(localObject9, localObject4);
                          if (i14 != 0) {
                            break label774;
                          }
                          if (i13 != 0) {
                            break label773;
                          }
                          if (i8 < 0)
                          {
                            i4--;
                            if (i14 != 0) {
                              continue;
                            }
                            if (i4 < i6)
                            {
                              i6 = i4;
                              localObject8 = ((d)localObject9).j();
                              if (i14 != 0) {
                                continue;
                              }
                              if (i13 == 0) {}
                            }
                          }
                          else
                          {
                            if (i14 != 0) {
                              continue;
                            }
                            if (i8 > 0) {
                              i4++;
                            }
                          }
                          localObject9 = ((d)localObject9).j();
                        } while (i13 == 0);
                        localObject9 = localObject4;
                        localObject4 = ((d)localObject4).j();
                      } while (i14 != 0);
                    } while (localObject8 == localObject9);
                    this.b.a((d)localObject9, ((d)localObject9).e(), ((d)localObject9).k(), 0, locale1, (d)localObject8, 1);
                    if (i14 != 0) {
                      break label773;
                    }
                    if ((i14 == 0) && (i13 != 0)) {
                      break label1108;
                    }
                  } while (i13 == 0);
                }
              }
              double d1;
              int i5;
              Object localObject11;
              double[] arrayOfDouble;
              do
              {
                if (locale1.e() > 1)
                {
                  localObject4 = locale1.j();
                  localcd = b((d)localObject4);
                  localObject5 = locale1.h();
                  localObject6 = b((d)localObject5);
                  if (((i14 != 0) || ((localcd == null) || ((i14 != 0) || (!localcd.a())))) && ((i14 != 0) || (localObject6 != null)) && (((cd)localObject6).a()))
                  {
                    localObject7 = ((d)localObject4).k();
                    do
                    {
                      do
                      {
                        if (localObject7 != null) {
                          break label912;
                        }
                        while (i14 != 0)
                        {
                          localcd = b((d)localObject7);
                          if (i14 != 0) {
                            break label291;
                          }
                          if (i13 != 0) {
                            break;
                          }
                          if (localcd != null)
                          {
                            if (i14 == 0) {
                              if (localcd.a()) {
                                continue;
                              }
                            }
                          }
                          else
                          {
                            localObject4 = localObject7;
                            localObject7 = ((d)localObject7).k();
                          }
                          if (i13 == 0) {
                            break label855;
                          }
                        }
                        if (localObject4 == null) {
                          break label1100;
                        }
                        i4 = 0;
                        localObject8 = localObject5;
                        i6 = 0;
                        localObject9 = localObject5;
                        do
                        {
                          do
                          {
                            if (localObject9 == localObject4) {
                              break label1032;
                            }
                            i8 = ((Comparator)localObject1).compare(localObject9, localObject4);
                            if (i14 != 0) {
                              break label303;
                            }
                            if (i13 != 0) {
                              break;
                            }
                            if (i8 < 0)
                            {
                              i4--;
                              if (i14 != 0) {
                                continue;
                              }
                              if (i4 < i6)
                              {
                                i6 = i4;
                                localObject8 = ((d)localObject9).i();
                                if (i14 != 0) {
                                  continue;
                                }
                                if (i13 == 0) {}
                              }
                            }
                            else
                            {
                              if (i14 != 0) {
                                continue;
                              }
                              if (i8 > 0) {
                                i4++;
                              }
                            }
                            localObject9 = ((d)localObject9).i();
                          } while (i13 == 0);
                          localObject9 = localObject4;
                          localObject4 = ((d)localObject4).i();
                        } while (i14 != 0);
                      } while (localObject8 == localObject9);
                      this.b.a((d)localObject9, locale1, (d)localObject8, 1, ((d)localObject9).f(), ((d)localObject9).l(), 0);
                      if (i14 != 0) {
                        break label4631;
                      }
                      if ((i14 == 0) && (i13 != 0)) {
                        break label1108;
                      }
                    } while (i13 == 0);
                  }
                }
                localab1.clear();
                localab2.clear();
                d1 = localx.getDouble(locale1);
                localObject5 = null;
                localObject6 = locale1.h();
                d locald;
                int i7;
                int i9;
                do
                {
                  if (localObject6 == null) {
                    break label1665;
                  }
                  localObject7 = b((d)localObject6);
                  if (i14 != 0) {
                    break label303;
                  }
                  if (i13 != 0) {
                    break;
                  }
                  if (this.M)
                  {
                    if (i14 == 0) {
                      if (localObject7 != null)
                      {
                        if (i14 != 0) {
                          break label1474;
                        }
                        if (!((cd)localObject7).g()) {
                          break label1463;
                        }
                      }
                    }
                    i4 = (((i14 != 0) || (localObject5 != null) ? a(((cd)localObject5).b(), 2) : 2) + 3) % 4;
                    localObject8 = null;
                    locald = ((d)localObject6).i();
                    do
                    {
                      if (locald == null) {
                        break;
                      }
                      if (i13 != 0) {
                        break label1263;
                      }
                      if (localObject8 != null) {
                        break;
                      }
                      localObject8 = b(locald);
                      locald = locald.i();
                    } while (i13 == 0);
                    i7 = (((i14 == 0) && (localObject8 != null) ? a(((cd)localObject8).b(), 1) : 1) + 3) % 4;
                    if (i14 == 0) {
                      if (i4 >= 1)
                      {
                        if (i14 != 0) {
                          break label1323;
                        }
                        if (i7 <= 1)
                        {
                          i9 = 1;
                          if (i14 != 0) {
                            break label1372;
                          }
                          if (i13 == 0) {
                            break label1370;
                          }
                        }
                      }
                    }
                    if (i14 == 0) {
                      if (i4 > 1)
                      {
                        if (i14 != 0) {
                          break label1365;
                        }
                        if (i7 > 1)
                        {
                          i9 = Math.min(i4, i7);
                          if (i14 != 0) {
                            break label1372;
                          }
                          if (i13 == 0) {
                            break label1370;
                          }
                        }
                      }
                    }
                    i9 = Math.max(i4, i7);
                    if (i14 == 0) {
                      switch (i9)
                      {
                      case 0: 
                        localObject7 = cd.a((byte)4);
                        if (i14 != 0) {
                          break label1467;
                        }
                        if (i13 == 0) {
                          break;
                        }
                      case 1: 
                        localObject7 = cd.a((byte)2);
                        if (i14 != 0) {
                          break label1467;
                        }
                        if (i13 == 0) {
                          break;
                        }
                      case 2: 
                      default: 
                        localObject7 = cd.a((byte)8);
                        if (i14 != 0) {
                          break label1467;
                        }
                        if (i13 == 0) {
                          break;
                        }
                      }
                    } else {
                      localObject7 = cd.a((byte)1);
                    }
                  }
                  localObject5 = localObject7;
                  if (i14 == 0)
                  {
                    if (localObject7 != null)
                    {
                      if (i14 != 0) {
                        break label1520;
                      }
                      if (!((cd)localObject7).g())
                      {
                        if (i14 != 0) {
                          break label1533;
                        }
                        if (!((cd)localObject7).d()) {
                          break label1528;
                        }
                      }
                    }
                    locald_1.c(2).l.a(localObject6);
                  }
                  if (i14 == 0)
                  {
                    if (i13 != 0)
                    {
                      if (i14 == 0) {
                        if (((cd)localObject7).e())
                        {
                          locald_1.b(1).l.add(localObject6);
                          localab2.a(localObject6);
                          if (i14 != 0) {
                            continue;
                          }
                          if (i13 == 0) {
                            break label1653;
                          }
                        }
                      }
                      if (i14 == 0) {
                        if (((cd)localObject7).f())
                        {
                          locald_1.a(3).l.a(localObject6);
                          localab1.add(localObject6);
                          if (i14 != 0) {
                            continue;
                          }
                          if (i13 == 0) {
                            break label1653;
                          }
                        }
                      }
                      if (i14 != 0) {
                        continue;
                      }
                      if (((cd)localObject7).c())
                      {
                        locald_1.a(0).l.a(localObject6);
                        localab1.add(localObject6);
                      }
                    }
                    localObject6 = ((d)localObject6).i();
                  }
                } while (i13 == 0);
                localObject5 = null;
                if (i14 != 0) {
                  break;
                }
                localObject6 = locale1.i();
                do
                {
                  if (localObject6 == null) {
                    break label2209;
                  }
                  localObject7 = d((d)localObject6);
                  if (i13 != 0) {
                    break;
                  }
                  if (this.M)
                  {
                    if (i14 == 0) {
                      if (localObject7 != null)
                      {
                        if (i14 != 0) {
                          break label2018;
                        }
                        if (!((cd)localObject7).g()) {
                          break label2007;
                        }
                      }
                    }
                    i4 = (((i14 != 0) || (localObject5 != null) ? a(((cd)localObject5).b(), 2) : 2) + 2) % 4;
                    localObject8 = null;
                    locald = ((d)localObject6).j();
                    do
                    {
                      if (locald == null) {
                        break;
                      }
                      if (i13 != 0) {
                        break label1809;
                      }
                      if (localObject8 != null) {
                        break;
                      }
                      localObject8 = d(locald);
                      locald = locald.j();
                    } while (i13 == 0);
                    i7 = (((i14 == 0) && (localObject8 != null) ? a(((cd)localObject8).b(), 1) : 1) + 2) % 4;
                    if (i14 == 0) {
                      if (i4 <= 2)
                      {
                        if (i14 != 0) {
                          break label1869;
                        }
                        if (i7 >= 2)
                        {
                          i9 = 2;
                          if (i14 != 0) {
                            break label1918;
                          }
                          if (i13 == 0) {
                            break label1916;
                          }
                        }
                      }
                    }
                    if (i14 == 0) {
                      if (i4 > 2)
                      {
                        if (i14 != 0) {
                          break label1911;
                        }
                        if (i7 > 2)
                        {
                          i9 = Math.min(i4, i7);
                          if (i14 != 0) {
                            break label1918;
                          }
                          if (i13 == 0) {
                            break label1916;
                          }
                        }
                      }
                    }
                    i9 = Math.max(i4, i7);
                    if (i14 == 0) {
                      switch (i9)
                      {
                      case 0: 
                        localObject7 = cd.a((byte)2);
                        if (i14 != 0) {
                          break label2011;
                        }
                        if (i13 == 0) {
                          break;
                        }
                      case 1: 
                        localObject7 = cd.a((byte)8);
                        if (i14 != 0) {
                          break label2011;
                        }
                        if (i13 == 0) {
                          break;
                        }
                      case 2: 
                      default: 
                        localObject7 = cd.a((byte)1);
                        if (i14 != 0) {
                          break label2011;
                        }
                        if (i13 == 0) {
                          break;
                        }
                      }
                    } else {
                      localObject7 = cd.a((byte)4);
                    }
                  }
                  localObject5 = localObject7;
                  if (i14 == 0)
                  {
                    if (localObject7 != null)
                    {
                      if (i14 != 0) {
                        break label2064;
                      }
                      if (!((cd)localObject7).c())
                      {
                        if (i14 != 0) {
                          break label2077;
                        }
                        if (!((cd)localObject7).g()) {
                          break label2072;
                        }
                      }
                    }
                    locald_1.c(0).l.add(localObject6);
                  }
                  if (i14 == 0)
                  {
                    if (i13 != 0)
                    {
                      if (i14 == 0) {
                        if (((cd)localObject7).e())
                        {
                          locald_1.a(1).l.add(localObject6);
                          localab2.a(localObject6);
                          if (i14 != 0) {
                            continue;
                          }
                          if (i13 == 0) {
                            break label2197;
                          }
                        }
                      }
                      if (i14 == 0) {
                        if (((cd)localObject7).f())
                        {
                          locald_1.b(3).l.a(localObject6);
                          localab1.add(localObject6);
                          if (i14 != 0) {
                            continue;
                          }
                          if (i13 == 0) {
                            break label2197;
                          }
                        }
                      }
                      if (i14 != 0) {
                        continue;
                      }
                      if (((cd)localObject7).d())
                      {
                        locald_1.b(2).l.a(localObject6);
                        localab1.add(localObject6);
                      }
                    }
                    localObject6 = ((d)localObject6).j();
                  }
                } while (i13 == 0);
                localObject7 = a;
                d_ locald_2 = a;
                if (i14 != 0) {
                  break label303;
                }
                if (i14 == 0) {
                  if (this.r.c(locale1))
                  {
                    locald_2 = this.r.a(locale1);
                    i3 = 1;
                    break label2261;
                  }
                }
                int i3 = 0;
                if (i14 == 0) {
                  if (this.q.b(locale1))
                  {
                    localObject7 = this.q.d(locale1);
                    this.q.a(locale1, (t.c_)localObject7);
                    i5 = 1;
                    if ((i14 == 0) && (i13 == 0)) {
                      break label2319;
                    }
                  }
                }
                i5 = 0;
                double d2 = a();
                int i10 = 3;
                e_ locale_2;
                e_ locale_3;
                e_ locale_4;
                e_ locale_5;
                e_ locale_6;
                e_ locale_7;
                e_ locale_8;
                do
                {
                  if (i10 < 0) {
                    break;
                  }
                  e_ locale_1 = locald_2.a(i10);
                  locale_2 = locald_2.c(i10);
                  locale_3 = ((d_)localObject7).a(i10);
                  locale_4 = locald_1.a(i10);
                  locale_5 = locald_1.c(i10);
                  locale_6 = ((d_)localObject7).c(i10);
                  localObject11 = ((d_)localObject7).b(i10);
                  locale_7 = locald_1.b(i10);
                  locale_8 = locald_2.b(i10);
                  int i12 = locale_1.l.size() + locale_2.l.size() + locale_4.l.size() + locale_3.l.size() + locale_5.l.size() + locale_6.l.size() + ((e_)localObject11).l.size() + locale_7.l.size() + locale_8.l.size();
                  double d9 = locald_1.d(i10);
                  double d10 = a(d9, i12);
                  double d11 = a(d9, i12, d10);
                  locale_4.j = (locale_5.j = locale_7.j = d10);
                  if (i13 != 0) {
                    break label3215;
                  }
                  if (i3 != 0) {
                    locale_1.j = (locale_2.j = locale_8.j = d10);
                  }
                  if (i14 == 0) {
                    if (i5 != 0) {
                      locale_3.j = (locale_6.j = ((e_)localObject11).j = d10);
                    }
                  }
                  if (i14 == 0)
                  {
                    if ((i10 & 0x1) == 1)
                    {
                      locale_4.a(Math.max(this.Q - d2, 0.0D), d2);
                      locale_5.a(0.0D, 0.0D);
                      locale_7.a(Math.max(this.Q - d2, 0.0D), d2);
                    }
                  }
                  else
                  {
                    if (i14 != 0) {
                      break label2751;
                    }
                    if (i13 == 0) {
                      break label2699;
                    }
                  }
                  locale_4.a(this.Q, d2);
                  locale_5.a(0.0D, 0.0D);
                  locale_7.a(this.Q, d2);
                  locale_1.a(this.Q, d2);
                  locale_2.a(this.Q, 0.0D);
                  locale_8.a(this.Q, d2);
                  if (i14 == 0)
                  {
                    locale_3.a(this.Q, d2);
                    if ((i10 & 0x1) == 1)
                    {
                      locale_6.a(Math.max(this.Q - d2, 0.0D), 0.0D);
                      if (i14 != 0) {
                        break label2803;
                      }
                      if (i13 == 0) {
                        break label2792;
                      }
                    }
                  }
                  locale_6.a(this.Q, 0.0D);
                  ((e_)localObject11).a(this.Q, d2);
                  double d12 = d11;
                  if (i14 == 0) {
                    if (i3 != 0)
                    {
                      locale_1.b(d12, 0.0D);
                      d12 = locale_1.g();
                    }
                  }
                  if (i14 == 0)
                  {
                    if ((i10 & 0x1) == 1)
                    {
                      if (i14 == 0)
                      {
                        if (i5 != 0)
                        {
                          locale_3.b(d12, 0.0D);
                          d12 = locale_3.g();
                        }
                        locale_4.a(Math.max(this.Q - d2, 0.0D), 0.0D);
                        locale_4.b(d12, 0.0D);
                        d12 = locale_4.g();
                      }
                      if (i14 != 0) {
                        break label2954;
                      }
                      if (i13 == 0) {}
                    }
                    else
                    {
                      locale_4.b(d12, 0.0D);
                      d12 = locale_4.g();
                    }
                  }
                  else
                  {
                    if (i14 != 0) {
                      break label2954;
                    }
                    if (i5 != 0)
                    {
                      locale_3.b(d12, 0.0D);
                      d12 = locale_3.g();
                    }
                  }
                  if (i14 == 0)
                  {
                    if (i3 != 0)
                    {
                      locale_2.b(d12, 0.0D);
                      d12 = locale_2.g();
                    }
                    locale_5.b(d12, 0.0D);
                    d12 = locale_5.g();
                  }
                  if (i14 == 0)
                  {
                    if (i5 != 0) {
                      locale_6.b(d12, 0.0D);
                    }
                    d12 = d11;
                  }
                  if (i14 == 0) {
                    if (i3 != 0)
                    {
                      locale_8.b(d12, 0.0D);
                      d12 = locale_8.g();
                    }
                  }
                  if (i14 == 0)
                  {
                    if ((i10 & 0x1) == 1)
                    {
                      if (i14 == 0)
                      {
                        if (i5 != 0)
                        {
                          ((e_)localObject11).b(d12, 0.0D);
                          d12 = ((e_)localObject11).g();
                        }
                        locale_7.a(Math.max(this.Q - d2, 0.0D), 0.0D);
                        locale_7.b(d12, 0.0D);
                        d12 = locale_7.g();
                      }
                      if (i14 != 0) {
                        break label3161;
                      }
                      if (i13 == 0) {}
                    }
                    else
                    {
                      locale_7.b(d12, 0.0D);
                      d12 = locale_7.g();
                    }
                  }
                  else
                  {
                    if (i14 != 0) {
                      break label3161;
                    }
                    if (i5 != 0)
                    {
                      ((e_)localObject11).b(d12, 0.0D);
                      d12 = ((e_)localObject11).g();
                    }
                  }
                  if (i14 == 0)
                  {
                    if (i5 != 0)
                    {
                      a(locale_3, locale1);
                      a(locale_6, locale1);
                      a((e_)localObject11, locale1);
                    }
                    c(locale_5, locale1);
                    i10--;
                  }
                } while (i13 == 0);
                if (i14 != 0) {
                  break label4629;
                }
                arrayOfDouble = new double[4];
                if (i14 == 0) {
                  if (i3 == 0)
                  {
                    if (i14 != 0) {
                      break label3857;
                    }
                    if (i5 == 0) {
                      continue;
                    }
                  }
                }
                if (i14 == 0) {
                  if (i3 != 0) {
                    this.r.e(locale1);
                  }
                }
                int i11 = 3;
                do
                {
                  if (i11 < 0) {
                    break label3850;
                  }
                  locale_2 = locald_2.a(i11);
                  locale_3 = locald_1.a(i11);
                  locale_4 = ((d_)localObject7).a(i11);
                  locale_5 = locald_1.c(i11);
                  locale_6 = locald_2.c(i11);
                  localObject11 = ((d_)localObject7).c(i11);
                  locale_7 = ((d_)localObject7).b(i11);
                  locale_8 = locald_1.b(i11);
                  e_ locale_9 = locald_2.b(i11);
                  if (i13 != 0) {
                    break;
                  }
                  if ((i11 & 0x1) == 1)
                  {
                    if (i14 == 0)
                    {
                      if (i5 != 0)
                      {
                        locale_4.f(locale_2.f);
                        locale_7.f(locale_9.f);
                        locale_3.f(locale_4.e());
                        locale_8.f(locale_7.e());
                      }
                    }
                    else
                    {
                      if (i14 != 0) {
                        break label3460;
                      }
                      if (i13 == 0) {
                        break label3440;
                      }
                    }
                    locale_3.f(locale_2.f);
                    locale_8.f(locale_9.f);
                    arrayOfDouble[i11] = Math.max(locale_3.e(), locale_8.e());
                    if (i14 != 0) {
                      break label3781;
                    }
                    if (i13 == 0) {}
                  }
                  else
                  {
                    locale_3.f(locale_2.f);
                    locale_8.f(locale_9.f);
                    if (i14 == 0)
                    {
                      if (i5 != 0)
                      {
                        locale_4.f(locale_3.e());
                        locale_7.f(locale_8.e());
                        t.c_ localc_2 = (t.c_)localObject7;
                        if (i14 == 0)
                        {
                          if (i11 == 0)
                          {
                            arrayOfDouble[i11] = Math.max(locale_4.a(localc_2.g[0]), locale_7.a(localc_2.g[1]));
                            if (i14 == 0)
                            {
                              if (locale_4.l.size() <= 0)
                              {
                                if (i14 != 0) {
                                  break label3781;
                                }
                                if (locale_7.l.size() <= 0) {}
                              }
                              else
                              {
                                arrayOfDouble[i11] = Math.max(this.Q - a(), arrayOfDouble[i11]);
                              }
                            }
                            else
                            {
                              if (i14 != 0) {
                                break label3781;
                              }
                              if (i13 == 0) {}
                            }
                          }
                          else
                          {
                            arrayOfDouble[i11] = Math.max(locale_4.a(localc_2.g[2]), locale_7.a(localc_2.g[3]));
                          }
                        }
                        else if (i14 == 0)
                        {
                          if (locale_4.l.size() <= 0)
                          {
                            if (i14 != 0) {
                              break label3781;
                            }
                            if (locale_7.l.size() <= 0) {}
                          }
                          else
                          {
                            arrayOfDouble[i11] = Math.max(this.Q - a(), arrayOfDouble[i11]);
                          }
                        }
                        else
                        {
                          if (i14 != 0) {
                            break label3781;
                          }
                          if (i13 == 0) {}
                        }
                      }
                      else
                      {
                        arrayOfDouble[i11] = Math.max(locale_3.e(), locale_8.e());
                      }
                    }
                    else
                    {
                      if (i14 != 0) {
                        break label3781;
                      }
                      if (i3 != 0) {
                        arrayOfDouble[i11] = Math.max(arrayOfDouble[i11], locale_6.f);
                      }
                    }
                  }
                  if (i14 == 0)
                  {
                    if (locale_6.l.size() > 0) {
                      arrayOfDouble[i11] = Math.max(arrayOfDouble[i11], locale_6.e() + a());
                    }
                    locale_5.f(arrayOfDouble[i11]);
                  }
                  if (i14 == 0)
                  {
                    if (i5 != 0) {
                      ((e_)localObject11).f(arrayOfDouble[i11]);
                    }
                    i11--;
                  }
                } while (i13 == 0);
              } while (i14 != 0);
              double d4;
              double d6;
              if (i5 != 0)
              {
                t.c_ localc_1 = (t.c_)localObject7;
                d4 = localc_1.c[1] * a();
                d6 = localc_1.c[0] * a();
                double d7 = arrayOfDouble[0];
                double d8 = arrayOfDouble[2];
                a(locale1, d7, d8, ((d_)localObject7).g(3) + d4, ((d_)localObject7).g(1) + d6);
                if (i14 != 0) {
                  break label4022;
                }
                if (i13 == 0) {}
              }
              else
              {
                double d3 = locald_1.f(0);
                double d5 = locald_1.f(2);
                a(locale1, d3, d5, locald_1.g(3), locald_1.g(1));
              }
              localc_.g = Math.max(localc_.g, localzc.d());
              Object localObject10 = this.c.get(locale1);
              a.c.v localv3;
              e locale2;
              if (i14 == 0) {
                if (!localab1.isEmpty())
                {
                  d4 = 0.1D / localab1.size();
                  d6 = d1 - 0.4D;
                  localv3 = localab1.f();
                  do
                  {
                    if (localv3 == null) {
                      break;
                    }
                    localObject11 = (d)localv3.c();
                    locale2 = this.b.i();
                    this.H.a(locale2, c.eb);
                    this.b.b(locale2, 1.0D, 0.5D);
                    this.c.a(locale2, localObject10);
                    while (i14 != 0)
                    {
                      if (i14 != 0) {
                        break label4437;
                      }
                      if (i13 != 0) {
                        break;
                      }
                    }
                    if (((d)localObject11).e() == locale1)
                    {
                      this.x.a(locale2, ((d)localObject11).e());
                      this.J.a(localObject11, this.b.p((d)localObject11));
                      this.b.a((d)localObject11, a.d.w.c);
                      this.b.a((d)localObject11, locale2, ((d)localObject11).f());
                      if ((i14 != 0) || (i14 != 0)) {
                        continue;
                      }
                      if (i13 == 0) {}
                    }
                    else
                    {
                      this.x.a(locale2, ((d)localObject11).f());
                      this.K.a(localObject11, this.b.q((d)localObject11));
                      this.b.b((d)localObject11, a.d.w.c);
                      this.b.a((d)localObject11, ((d)localObject11).e(), locale2);
                    }
                    localx.a(locale2, d6);
                    localbb.a(locale2, localv2);
                    d6 += d4;
                    localv3 = localv3.a();
                  } while ((i14 == 0) && (i13 == 0));
                }
              }
              if (!localab2.isEmpty())
              {
                d4 = 0.1D / localab2.size();
                d6 = d1 + 0.1D;
                localv3 = localab2.g();
                do
                {
                  if (localv3 == null) {
                    break label4622;
                  }
                  localObject11 = (d)localv3.c();
                  locale2 = this.b.i();
                  this.H.a(locale2, c.eb);
                  this.b.b(locale2, 1.0D, 0.5D);
                  this.c.a(locale2, localObject10);
                  if (i13 != 0) {
                    break;
                  }
                  if (((d)localObject11).e() == locale1)
                  {
                    this.x.a(locale2, ((d)localObject11).e());
                    this.J.a(localObject11, this.b.p((d)localObject11));
                    this.b.a((d)localObject11, a.d.w.c);
                    this.b.a((d)localObject11, locale2, ((d)localObject11).f());
                    if (i14 != 0) {
                      continue;
                    }
                    if (i13 == 0) {}
                  }
                  else
                  {
                    this.x.a(locale2, ((d)localObject11).f());
                    this.K.a(localObject11, this.b.q((d)localObject11));
                    this.b.b((d)localObject11, a.d.w.c);
                    this.b.a((d)localObject11, ((d)localObject11).e(), locale2);
                  }
                  localx.a(locale2, d6);
                  localv2 = localbb.b(locale2, localv2);
                  d6 += d4;
                  localv3 = localv3.b();
                } while (i13 == 0);
              }
            }
          }
          localv2 = localv2.a();
        } while (i13 == 0);
        localv1 = localv1.a();
        i2++;
      } while (i14 != 0);
      if (i13 == 0) {
        break;
      }
    }
    label523:
    label912:
    label1100:
    label1108:
    label1365:
    label1370:
    label1372:
    label1653:
    label1911:
    label1916:
    this.b.a(localx);
    label768:
    label773:
    label774:
    label1032:
    label1323:
    label1463:
    label1467:
    label1474:
    label1869:
    label2007:
    label2011:
    label2018:
    label2792:
    label2803:
    return;
  }
  
  private void a(e parame, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    int i1 = f.o;
    if (i1 == 0) {
      if (this.v != null) {
        this.v.a(parame, paramDouble1);
      }
    }
    if (i1 == 0) {
      if (this.w != null) {
        this.w.a(parame, paramDouble2);
      }
    }
    if (i1 == 0) {
      if (this.t != null) {
        this.t.a(parame, paramDouble3);
      }
    }
    if (i1 == 0) {
      if (this.t != null) {
        this.t.a(parame, paramDouble3);
      }
    }
    if ((i1 != 0) || (this.u != null)) {
      this.u.a(parame, paramDouble4);
    }
  }
  
  private void l()
  {
    this.t = this.b.B();
    this.u = this.b.B();
    this.b.a(u.a, this.t);
    this.b.a(u.b, this.u);
    this.v = this.b.B();
    this.w = this.b.B();
  }
  
  private void m()
  {
    int i1 = f.o;
    if (i1 == 0) {
      if (this.t != null)
      {
        this.b.j(u.a);
        this.b.a(this.t);
        this.t = null;
      }
    }
    if (i1 == 0) {
      if (this.u != null)
      {
        this.b.j(u.b);
        this.b.a(this.u);
        this.u = null;
      }
    }
    if (i1 == 0)
    {
      if (this.v != null)
      {
        this.b.a(this.v);
        this.v = null;
      }
      if (i1 != 0) {}
    }
    else
    {
      if (this.w == null) {
        return;
      }
      this.b.a(this.w);
    }
    this.w = null;
  }
  
  public double a(double paramDouble, int paramInt)
  {
    if (paramInt <= 1) {
      return 0.0D;
    }
    return paramDouble / (paramInt - 1 + 2.0D * this.p);
  }
  
  public double a(double paramDouble1, int paramInt, double paramDouble2)
  {
    if (paramInt <= 1) {
      return paramDouble1 * 0.5D;
    }
    return (paramDouble1 - paramDouble2 * (paramInt - 1)) * 0.5D;
  }
  
  private void n()
  {
    int i12 = f.o;
    int i11 = f.n;
    this.C = new HashMap();
    this.q.c(this.m);
    double d1 = 0.0D;
    a.f.l.v localv = new a.f.l.v(-1000.0D, 1000.0D);
    int i1 = 0;
    double d2 = 0.0D;
    double d3 = a();
    Object localObject1 = this.m.f();
    if (localObject1 != null) {}
    Object localObject2;
    Object localObject3;
    double d4;
    double d5;
    Object localObject4;
    Object localObject6;
    label287:
    label300:
    label493:
    label1389:
    label1777:
    label2417:
    label2429:
    do
    {
      localObject2 = (c_)((a.c.v)localObject1).c();
      localObject3 = ((c_)localObject2).a;
      d4 = 1.7976931348623157E+308D;
      d5 = -1.797693134862316E+308D;
      double d6 = -1.797693134862316E+308D;
      if (i11 != 0) {
        break label6764;
      }
      localObject4 = ((a.c.bb)localObject3).f();
      if (localObject4 != null) {}
      while (i12 != 0)
      {
        e locale2 = (e)((a.c.v)localObject4).c();
        localObject6 = this.b.d(locale2);
        d6 = Math.max(d6, ((zc)localObject6).b() + ((zc)localObject6).d());
        ((zc)localObject6).a(((zc)localObject6).a(), ((zc)localObject6).b() + d1);
        d4 = Math.min(d4, ((zc)localObject6).b() - this.v.getDouble(locale2));
        if (i12 != 0) {
          break label300;
        }
        d5 = Math.max(d5, ((zc)localObject6).b() + ((zc)localObject6).d() + this.w.getDouble(locale2));
        localObject4 = ((a.c.v)localObject4).a();
        if (i11 != 0) {
          break label287;
        }
        if (i11 == 0) {
          break;
        }
      }
      localObject4 = c.a((a.c.bb)localObject3, this.H);
      double d7 = d5 - (d6 + d1) + ((c_)localObject2).f;
      double d8 = d7;
      ((c_)localObject2).b = d4;
      ((c_)localObject2).d = d5;
      if ((i12 != 0) || (((a.c.v)localObject1).a() != null))
      {
        c_ localc_1 = (c_)((a.c.v)localObject1).a().c();
        c_ localc_2;
        if ((i12 != 0) || (((a.c.v)localObject1).a().a() != null))
        {
          localc_2 = (c_)((a.c.v)localObject1).a().a().c();
          if (i11 == 0) {}
        }
        else
        {
          localc_2 = null;
        }
        Integer localInteger = new Integer(i1 + 1);
        int i3;
        if (i12 == 0) {
          if (this.s != null)
          {
            if (i12 != 0) {
              break label493;
            }
            if (this.s.e().contains(localInteger))
            {
              i2 = 1;
              if (localc_2 != null) {
                if (i12 != 0) {}
              }
              i3 = this.s.d().contains(new Integer(i1 + 2)) ? 1 : 0;
              if (i12 != 0) {
                break label547;
              }
              if (i11 == 0) {
                break label545;
              }
            }
          }
        }
        if ((i12 != 0) || (this.s != null))
        {
          if (i12 != 0) {
            break label540;
          }
          if (this.s.d().contains(localInteger))
          {
            i2 = 0;
            i3 = 1;
            if (i12 != 0) {
              break label547;
            }
            if (i11 == 0) {
              break label545;
            }
          }
        }
        int i2 = i3 = 0;
        if (i12 == 0) {
          if (i2 != 0)
          {
            if (i12 != 0) {
              break label599;
            }
            if (i3 != 0)
            {
              localc_3 = (c_)((a.c.v)localObject1).a().a().a().c();
              i1 += 2;
              if ((i12 == 0) && (i11 == 0)) {
                break label645;
              }
            }
          }
        }
        if ((i12 != 0) || ((i2 != 0) || (i3 != 0)))
        {
          if (i12 != 0) {
            break label643;
          }
          localc_3 = (c_)((a.c.v)localObject1).a().a().c();
          i1++;
          if (i11 == 0) {
            break label645;
          }
        }
        c_ localc_3 = localc_1;
        Object localObject7 = c.a(localc_3.a, this.H);
        double d10 = 0.0D;
        double d11 = 0.0D;
        double d13;
        do
        {
          double d12 = 0.0D;
          int i4 = 1;
          if (i12 == 0) {
            if (localObject4 != c.fb)
            {
              if (i12 != 0) {
                break label793;
              }
              if (localObject7 != c.fb)
              {
                if (i12 == 0) {
                  if (localObject4 == c.db) {
                    d10 = Math.max(this.Q, 0.5D * this.R);
                  }
                }
                if (i12 != 0) {
                  break label793;
                }
                if (localObject7 == c.db)
                {
                  d10 += Math.max(this.Q, 0.5D * this.R);
                  if (i12 != 0) {
                    break label793;
                  }
                  if (localObject4 == localObject7)
                  {
                    d10 = Math.max(this.Q, this.R);
                    i4 = 0;
                  }
                }
              }
            }
          }
          int i5;
          if (localObject4 == c.db)
          {
            d12 = this.Q;
            i5 = 1;
            if ((i12 == 0) && (i11 == 0)) {}
          }
          else
          {
            i5 = 0;
          }
          int i6;
          if (localObject7 == c.db)
          {
            d11 = this.Q;
            i6 = 1;
            if ((i12 == 0) && (i11 == 0)) {}
          }
          else
          {
            i6 = 0;
          }
          d13 = 1.7976931348623157E+308D;
          double d14 = 1.7976931348623157E+308D;
          a.c.v localv3 = localc_3.a.f();
          do
          {
            if (localv3 == null) {
              break;
            }
            e locale3 = (e)localv3.c();
            zc localzc = this.b.d(localv3.c());
            d13 = Math.min(d13, localzc.b());
            d14 = Math.min(d14, localzc.b() - this.v.getDouble(locale3));
            localv3 = localv3.a();
            if (i12 != 0) {
              break label994;
            }
            if (i11 != 0) {
              break label984;
            }
          } while (i11 == 0);
          d2 = d13 - d14 + localc_3.e;
          if (i12 == 0) {
            d8 += d2;
          }
          double d15 = (i12 != 0) || (d7 < d12) ? d12 - d7 : 0.0D;
          double d16 = (i12 != 0) || (d2 < d11) ? d11 - d2 : 0.0D;
          double d17 = 0.0D;
          localv.a(-1000.0D, 1000.0D, (byte)1);
          Object localObject8;
          Object localObject9;
          Object localObject10;
          Object localObject13;
          Object localObject19;
          Object localObject15;
          if (i12 == 0) {
            if (i2 == 0)
            {
              if (i12 != 0) {
                break label1777;
              }
              if (i3 == 0)
              {
                if (i12 == 0) {
                  if (this.n)
                  {
                    a.c.v localv4 = ((a.c.bb)localObject3).f();
                    if (localv4 != null) {}
                    do
                    {
                      localObject8 = (e)localv4.c();
                      if (i12 != 0) {
                        break label6814;
                      }
                      if (i11 != 0) {
                        break label6776;
                      }
                      localObject9 = ((e)localObject8).h();
                      do
                      {
                        if (localObject9 == null) {
                          break;
                        }
                        localObject10 = this.b.r((d)localObject9);
                        localObject13 = this.b.s((d)localObject9);
                        if (i11 != 0) {
                          break label1249;
                        }
                        if (((a.d.w)localObject10).a != ((a.d.w)localObject13).a)
                        {
                          localObject10 = new a.d.w(((a.d.w)localObject10).a, -2000.0D);
                          localObject13 = new a.d.w(((a.d.w)localObject13).a, 2000.0D);
                          localv.a(localObject9, (a.d.w)localObject10, (a.d.w)localObject13);
                        }
                        localObject9 = ((d)localObject9).i();
                      } while (i11 == 0);
                      localv4 = localv4.a();
                      if (i12 != 0) {
                        break label1249;
                      }
                      if (i11 == 0) {
                        break;
                      }
                      localv.b();
                    } while (i12 != 0);
                    i7 = localv.d();
                    if (i12 == 0)
                    {
                      if (i7 > 0)
                      {
                        d15 = Math.max(d15, i5 != 0 ? Math.max(this.Q, d3) : d3);
                        d16 = Math.max(d16, i6 != 0 ? Math.max(this.Q, d3) : d3);
                        d8 += (i7 - 1) * d3 + d15 + d16;
                        if (i12 != 0) {
                          break label1389;
                        }
                        if (i11 == 0) {
                          break label1379;
                        }
                      }
                      d16 = d15 = 0.0D;
                      if (i12 != 0) {}
                    }
                    else if (d2 <= 0.0D)
                    {
                      if (i12 != 0) {
                        break label1389;
                      }
                      if (d7 <= 0.0D) {
                        break label1379;
                      }
                    }
                    d8 += d3;
                    if (i12 == 0) {
                      if (d8 < d10)
                      {
                        d17 = d13 + d1 + d7 + d15 + (d10 - d8) * 0.5D;
                        if (i12 != 0) {
                          break label1442;
                        }
                        d1 += d10 - d8;
                        if (i11 == 0) {
                          break label1444;
                        }
                      }
                    }
                    d17 = d13 + d1 + d7 + d15;
                    localObject8 = localv.a();
                    do
                    {
                      if (!((Iterator)localObject8).hasNext()) {
                        break;
                      }
                      localObject9 = (d)((Iterator)localObject8).next();
                      localObject10 = this.b.r((d)localObject9);
                      localObject13 = this.b.s((d)localObject9);
                      double d22 = d17 + localv.d(localObject9) * d3;
                      localObject19 = a((d)localObject9);
                      ((z)localObject19).add(new a.d.w(((a.d.w)localObject10).a, d22));
                      ((z)localObject19).add(new a.d.w(((a.d.w)localObject13).a, d22));
                      if (i12 != 0) {
                        break label6680;
                      }
                      if (i11 != 0) {
                        break label6678;
                      }
                    } while (i11 == 0);
                  }
                }
                int i7 = 1;
                if (i12 != 0) {
                  break label6680;
                }
                if (i4 != 0)
                {
                  localObject8 = ((a.c.bb)localObject3).f();
                  do
                  {
                    if (localObject8 == null) {
                      break;
                    }
                    if (i11 != 0) {
                      break label1726;
                    }
                    if (i7 == 0) {
                      break;
                    }
                    localObject9 = (e)((a.c.v)localObject8).c();
                    localObject10 = ((e)localObject9).h();
                    do
                    {
                      if (localObject10 == null) {
                        break;
                      }
                      localObject13 = this.b.r((d)localObject10);
                      localObject15 = this.b.s((d)localObject10);
                      if (i11 != 0) {
                        break label1726;
                      }
                      if (Math.abs(((a.d.w)localObject13).a - ((a.d.w)localObject15).a) > 2.0D)
                      {
                        i7 = 0;
                        if (i12 != 0) {
                          break label1716;
                        }
                        if (i11 == 0) {
                          break;
                        }
                      }
                      localObject10 = ((d)localObject10).i();
                    } while (i11 == 0);
                    localObject8 = ((a.c.v)localObject8).a();
                    if (i12 != 0) {
                      break label1726;
                    }
                  } while (i11 == 0);
                  if (i12 != 0) {
                    break label1770;
                  }
                  if (i7 == 0)
                  {
                    d10 = this.R;
                    if (i12 != 0) {
                      break label1772;
                    }
                    if (i11 == 0) {}
                  }
                }
                else
                {
                  d10 = Math.max(this.Q, this.R);
                }
                if (i12 != 0) {
                  break label6677;
                }
                d8 += d10;
                if (i11 == 0) {
                  continue;
                }
              }
            }
          }
          Object localObject20;
          z localz2;
          Object localObject11;
          Object localObject23;
          Object localObject17;
          Object localObject26;
          a.d.w localw3;
          double d36;
          if (i12 == 0)
          {
            if (i2 != 0)
            {
              if (i12 != 0) {
                break label4313;
              }
              if (i3 != 0)
              {
                this.m.h(((a.c.v)localObject1).a().a());
                this.m.h(((a.c.v)localObject1).a());
                a.c.v localv5 = localc_1.a.f();
                Object localObject16;
                double d18;
                Object localObject22;
                Object localObject25;
                Object localObject27;
                do
                {
                  do
                  {
                    if (localv5 == null) {
                      break label2446;
                    }
                    localObject8 = (e)localv5.c();
                    if (i12 != 0) {
                      break label543;
                    }
                    if (i11 != 0) {
                      break;
                    }
                    localObject9 = ((e)localObject8).c() == 2 ? null : this.s.c((e)localObject8);
                    if (localObject9 == null)
                    {
                      localObject10 = ((e)localObject8).h().f();
                      localObject13 = ((e)localObject10).c() == 2 ? null : this.s.c((e)localObject10);
                      if (i12 != 0) {
                        break label2436;
                      }
                      if (localObject13 == null)
                      {
                        localObject15 = this.b.r(((e)localObject8).i());
                        localObject16 = this.b.s(((e)localObject10).h());
                        if (i12 != 0) {
                          continue;
                        }
                        if (((a.d.w)localObject15).a != ((a.d.w)localObject16).a)
                        {
                          localObject15 = new a.d.w(((a.d.w)localObject15).a, -2000.0D);
                          localObject16 = new a.d.w(((a.d.w)localObject16).a, 2000.0D);
                          localv.a(((e)localObject8).i(), (a.d.w)localObject15, (a.d.w)localObject16);
                          if (i12 != 0) {
                            continue;
                          }
                          if (i11 == 0) {}
                        }
                      }
                    }
                    else
                    {
                      d18 = this.b.m((e)localObject8);
                      localObject15 = new a.d.w(d18, -2000.0D);
                      localObject16 = ((e)localObject8).i();
                      do
                      {
                        if (localObject16 == null) {
                          break;
                        }
                        localObject19 = this.b.r((d)localObject16);
                        if (i11 != 0) {
                          break label2874;
                        }
                        if (((a.d.w)localObject19).a != ((a.d.w)localObject15).a)
                        {
                          localObject19 = new a.d.w(((a.d.w)localObject19).a, -2000.0D);
                          localv.a(localObject16, localObject9, (a.d.w)localObject19, (a.d.w)localObject15);
                        }
                        localObject16 = ((d)localObject16).j();
                      } while (i11 == 0);
                      localObject16 = null;
                      if (i12 == 0)
                      {
                        if (i12 != 0) {
                          break label2874;
                        }
                        if (!this.j) {}
                      }
                      else
                      {
                        localObject16 = new Object();
                      }
                      localObject19 = ((e)localObject8).h();
                      do
                      {
                        if (localObject19 == null) {
                          break label2429;
                        }
                        localObject20 = ((d)localObject19).f();
                        localObject22 = new a.d.w(d18, -2000.0D);
                        if (i12 != 0) {
                          break label543;
                        }
                        if (i11 != 0) {
                          break;
                        }
                        localObject25 = ((e)localObject20).c() == 2 ? null : this.s.c((e)localObject20);
                        if (i12 == 0) {
                          if (localObject25 == null)
                          {
                            localObject27 = this.b.s(((e)localObject20).h());
                            if (i12 != 0) {
                              continue;
                            }
                            if (((a.d.w)localObject27).a == ((a.d.w)localObject22).a) {
                              break label2417;
                            }
                            localObject27 = new a.d.w(((a.d.w)localObject27).a, 2000.0D);
                            if (i12 == 0)
                            {
                              if (this.j)
                              {
                                localv.a(localObject19, localObject16, (a.d.w)localObject22, (a.d.w)localObject27);
                                if (i12 != 0) {
                                  continue;
                                }
                                if (i11 == 0) {
                                  break label2417;
                                }
                              }
                              localv.a(localObject19, (a.d.w)localObject22, (a.d.w)localObject27);
                            }
                            if (i12 != 0) {
                              continue;
                            }
                            if (i11 == 0) {
                              break label2417;
                            }
                          }
                        }
                        if (!localObject25.equals(localObject9))
                        {
                          localObject27 = new a.d.w(this.b.m((e)localObject20), 2000.0D);
                          if (i12 != 0) {
                            continue;
                          }
                          if (((a.d.w)localObject22).a != ((a.d.w)localObject27).a) {
                            localv.a(localObject19, (a.d.w)localObject22, (a.d.w)localObject27);
                          }
                        }
                        localObject19 = ((d)localObject19).i();
                      } while (i11 == 0);
                    }
                    localv5 = localv5.a();
                    if (i12 != 0) {
                      break label543;
                    }
                  } while (i11 == 0);
                } while (i12 != 0);
                localv5 = localc_2.a.f();
                if (localv5 != null) {}
                do
                {
                  localObject8 = (e)localv5.c();
                  if (i12 != 0) {
                    break label543;
                  }
                  if (i11 != 0) {
                    break;
                  }
                  localObject9 = ((e)localObject8).c() == 2 ? null : this.s.c((e)localObject8);
                  if (i12 == 0)
                  {
                    if (localObject9 != null)
                    {
                      d18 = this.b.m((e)localObject8);
                      localObject15 = new a.d.w(d18, 2000.0D);
                      localObject16 = ((e)localObject8).h();
                      do
                      {
                        if (localObject16 == null) {
                          break;
                        }
                        localObject19 = this.b.s((d)localObject16);
                        if (i11 != 0) {
                          break label2874;
                        }
                        if (((a.d.w)localObject15).a != ((a.d.w)localObject19).a)
                        {
                          localObject19 = new a.d.w(((a.d.w)localObject19).a, 2000.0D);
                          localv.a(localObject16, localObject9, (a.d.w)localObject15, (a.d.w)localObject19);
                        }
                        localObject16 = ((d)localObject16).i();
                      } while (i11 == 0);
                      localObject16 = new a.d.w(d18, 2000.0D);
                      localObject19 = null;
                      if (i12 == 0)
                      {
                        if (i12 != 0) {
                          break label2874;
                        }
                        if (!this.j) {}
                      }
                      else
                      {
                        localObject19 = new Object();
                      }
                      localObject20 = ((e)localObject8).i();
                      do
                      {
                        if (localObject20 == null) {
                          break label2844;
                        }
                        localObject22 = ((d)localObject20).e();
                        if (i12 != 0) {
                          break label543;
                        }
                        if (i11 != 0) {
                          break;
                        }
                        localObject25 = ((e)localObject22).c() == 2 ? null : this.s.c((e)localObject22);
                        if (i12 == 0)
                        {
                          if (localObject25 == null)
                          {
                            localObject27 = ((e)localObject22).i();
                            localObject15 = this.b.r((d)localObject27);
                            if (i12 != 0) {
                              continue;
                            }
                            if (((a.d.w)localObject15).a != ((a.d.w)localObject16).a)
                            {
                              localObject15 = new a.d.w(((a.d.w)localObject15).a, -2000.0D);
                              if (i12 == 0)
                              {
                                if (this.j) {
                                  localv.a(localObject27, localObject19, (a.d.w)localObject15, (a.d.w)localObject16);
                                }
                              }
                              else
                              {
                                if (i12 != 0) {
                                  continue;
                                }
                                if (i11 == 0) {
                                  break label2832;
                                }
                              }
                              localv.a(localObject27, (a.d.w)localObject15, (a.d.w)localObject16);
                            }
                          }
                          localObject20 = ((d)localObject20).j();
                        }
                      } while (i11 == 0);
                    }
                    localv5 = localv5.a();
                  }
                  if (i12 != 0) {
                    break label543;
                  }
                  if (i11 == 0) {
                    break label2461;
                  }
                  localv.b();
                } while (i12 != 0);
                int i8 = localv.d();
                if (i12 == 0)
                {
                  if (i8 > 0)
                  {
                    d15 = Math.max(d15, d3);
                    d16 = Math.max(d16, d3);
                    d8 += (i8 - 1) * d3 + d15 + d16;
                    if (i12 != 0) {
                      break label2980;
                    }
                    if (i11 == 0) {
                      break label2970;
                    }
                  }
                  d16 = d15 = 0.0D;
                  if (i12 != 0) {}
                }
                else if (d2 <= 0.0D)
                {
                  if (i12 != 0) {
                    break label2980;
                  }
                  if (d7 <= 0.0D) {
                    break label2970;
                  }
                }
                d8 += d3;
                if (i12 == 0) {
                  if (d8 < d10)
                  {
                    d17 = d13 + d1 + d7 + d15 + (d10 - d8) * 0.5D;
                    if (i12 != 0) {
                      break label3033;
                    }
                    d1 += d10 - d8;
                    if (i11 == 0) {
                      break label3035;
                    }
                  }
                }
                d17 = d13 + d1 + d7 + d15;
                localObject8 = localc_1.a.f();
                double d32;
                do
                {
                  do
                  {
                    if (localObject8 == null) {
                      break label3846;
                    }
                    localObject9 = (e)((a.c.v)localObject8).c();
                    d18 = this.b.m((e)localObject9);
                    this.b.a((e)localObject9, d18, d17);
                    if (i12 != 0) {
                      break label543;
                    }
                    if (i11 != 0) {
                      break;
                    }
                    localObject15 = ((e)localObject9).c() == 2 ? null : this.s.c((e)localObject9);
                    double d33;
                    if (localObject15 == null)
                    {
                      localObject16 = ((e)localObject9).h().f();
                      localObject19 = ((e)localObject16).c() == 2 ? null : this.s.c((e)localObject16);
                      if (i12 != 0) {
                        break label3836;
                      }
                      if (localObject19 == null)
                      {
                        localObject20 = ((e)localObject9).i();
                        localObject22 = this.b.r((d)localObject20);
                        localObject25 = this.b.s(((e)localObject16).h());
                        this.b.a((e)localObject9, ((a.d.w)localObject22).a, d17);
                        this.b.a((e)localObject16, ((a.d.w)localObject25).a, d17);
                        if (i12 == 0)
                        {
                          if (((a.d.w)localObject22).a != ((a.d.w)localObject25).a)
                          {
                            d33 = d17 + localv.d(localObject20) * d3;
                            this.b.d((d)localObject20, new a.d.w(((a.d.w)localObject22).a, d33));
                            this.b.c(((e)localObject16).h(), new a.d.w(((a.d.w)localObject25).a, d33));
                          }
                          this.b.c(((e)localObject9).h(), this.b.s((d)localObject20));
                          this.b.d(((e)localObject9).h(), this.b.r(((e)localObject16).h()));
                        }
                        if (i12 != 0) {
                          continue;
                        }
                        if (i11 == 0) {}
                      }
                    }
                    else
                    {
                      if (localv.b(localObject15))
                      {
                        double d23 = d17 + localv.e(localObject15) * d3;
                        this.b.a((e)localObject9, d18, d23);
                        localObject20 = ((e)localObject9).i();
                        do
                        {
                          if (localObject20 == null) {
                            break;
                          }
                          localObject22 = this.b.r((d)localObject20);
                          if (i11 != 0) {
                            break label6695;
                          }
                          if (((a.d.w)localObject22).a != d18)
                          {
                            d32 = d17 + localv.d(localObject20) * d3;
                            this.b.d((d)localObject20, new a.d.w(((a.d.w)localObject22).a, d32));
                            if (i12 != 0) {
                              continue;
                            }
                            if (i11 == 0) {}
                          }
                          else
                          {
                            this.b.d((d)localObject20, new a.d.w(((a.d.w)localObject22).a, d23));
                          }
                          localObject20 = ((d)localObject20).j();
                        } while (i11 == 0);
                      }
                      if (i12 != 0) {
                        break label6776;
                      }
                      d locald1 = ((e)localObject9).h();
                      do
                      {
                        if (locald1 == null) {
                          break label3829;
                        }
                        localObject19 = locald1.f();
                        if (i12 != 0) {
                          break label543;
                        }
                        if (i11 != 0) {
                          break;
                        }
                        localObject20 = ((e)localObject19).c() == 2 ? null : this.s.c((e)localObject19);
                        if (localObject20 == null)
                        {
                          localObject22 = this.b.s(((e)localObject19).h());
                          this.b.a((e)localObject19, d18, d17);
                          if (i12 != 0) {
                            continue;
                          }
                          if (((a.d.w)localObject22).a != d18)
                          {
                            d32 = d17 + localv.d(locald1) * d3;
                            this.b.d(locald1, new a.d.w(d18, d32));
                            this.b.c(((e)localObject19).h(), new a.d.w(((a.d.w)localObject22).a, d32));
                            if (i12 != 0) {
                              continue;
                            }
                            if (i11 == 0) {}
                          }
                        }
                        else
                        {
                          double d29 = this.b.m((e)localObject19);
                          this.b.a((e)localObject19, d29, d17);
                          if ((i12 != 0) || (!localObject20.equals(localObject15)))
                          {
                            if (i12 != 0) {
                              continue;
                            }
                            if (d18 != d29)
                            {
                              d33 = d17 + localv.d(locald1) * d3;
                              localz2 = a(locald1);
                              localz2.add(new a.d.w(d18, d33));
                              localz2.add(new a.d.w(d29, d33));
                            }
                          }
                        }
                        locald1 = locald1.i();
                      } while (i11 == 0);
                    }
                    localObject8 = ((a.c.v)localObject8).a();
                    if (i12 != 0) {
                      break label543;
                    }
                  } while (i11 == 0);
                } while (i12 != 0);
                localObject8 = localc_2.a.f();
                do
                {
                  if (localObject8 == null) {
                    break label6662;
                  }
                  localObject9 = (e)((a.c.v)localObject8).c();
                  if (i12 != 0) {
                    break label543;
                  }
                  if (i11 != 0) {
                    break;
                  }
                  localObject11 = ((e)localObject9).c() == 2 ? null : this.s.c((e)localObject9);
                  if (i12 == 0)
                  {
                    if (localObject11 != null)
                    {
                      double d21 = this.b.m((e)localObject9);
                      if (localv.b(localObject11))
                      {
                        double d24 = d17 + localv.e(localObject11) * d3;
                        this.b.a((e)localObject9, d21, d24);
                        localObject20 = ((e)localObject9).h();
                        do
                        {
                          if (localObject20 == null) {
                            break;
                          }
                          localObject23 = this.b.s((d)localObject20);
                          if (i11 != 0) {
                            break label6695;
                          }
                          if (((a.d.w)localObject23).a != d21)
                          {
                            d32 = d17 + localv.d(localObject20) * d3;
                            this.b.c((d)localObject20, new a.d.w(((a.d.w)localObject23).a, d32));
                            if (i12 != 0) {
                              continue;
                            }
                            if (i11 == 0) {}
                          }
                          else
                          {
                            this.b.c((d)localObject20, new a.d.w(((a.d.w)localObject23).a, d24));
                          }
                          localObject20 = ((d)localObject20).i();
                        } while (i11 == 0);
                      }
                      if (i12 != 0) {
                        break label676;
                      }
                      this.b.a((e)localObject9, d21, d17);
                      localObject17 = new a.d.w(d21, 2000.0D);
                      localObject19 = ((e)localObject9).i();
                      do
                      {
                        if (localObject19 == null) {
                          break label4289;
                        }
                        localObject20 = ((d)localObject19).e();
                        if (i12 != 0) {
                          break label543;
                        }
                        if (i11 != 0) {
                          break;
                        }
                        localObject23 = ((e)localObject20).c() == 2 ? null : this.s.c((e)localObject20);
                        if (i12 == 0)
                        {
                          if (localObject23 == null)
                          {
                            localObject26 = ((e)localObject20).i();
                            localw3 = this.b.r((d)localObject26);
                            if (i12 != 0) {
                              continue;
                            }
                            if (localw3.a != d21)
                            {
                              d36 = d17 + localv.d(localObject26) * d3;
                              this.b.d((d)localObject26, new a.d.w(localw3.a, d36));
                              this.b.c((d)localObject19, new a.d.w(d21, d36));
                            }
                          }
                          localObject19 = ((d)localObject19).j();
                        }
                      } while (i11 == 0);
                    }
                    localObject8 = ((a.c.v)localObject8).a();
                  }
                  if (i12 != 0) {
                    break label543;
                  }
                } while (i11 == 0);
              }
            }
            if (i12 != 0) {
              break label6735;
            }
          }
          Object localObject14;
          Object localObject12;
          Object localObject21;
          Object localObject24;
          if (i2 != 0)
          {
            this.m.h(((a.c.v)localObject1).a());
            a.c.v localv6 = localc_1.a.f();
            if (localv6 != null) {}
            do
            {
              localObject8 = (e)localv6.c();
              if (i12 != 0) {
                break label543;
              }
              if (i11 != 0) {
                break;
              }
              localObject9 = ((e)localObject8).c() == 2 ? null : this.s.c((e)localObject8);
              if (localObject9 == null)
              {
                localObject11 = this.b.r(((e)localObject8).i());
                localObject14 = this.b.s(((e)localObject8).h());
                if (i12 != 0) {
                  break label4784;
                }
                if (((a.d.w)localObject11).a != ((a.d.w)localObject14).a)
                {
                  localObject11 = new a.d.w(((a.d.w)localObject11).a, -2000.0D);
                  localObject14 = new a.d.w(((a.d.w)localObject14).a, 2000.0D);
                  localv.a(((e)localObject8).i(), (a.d.w)localObject11, (a.d.w)localObject14);
                  if (i12 != 0) {
                    break label4784;
                  }
                  if (i11 == 0) {}
                }
              }
              else
              {
                double d19 = this.b.m((e)localObject8);
                localObject15 = new a.d.w(d19, -2000.0D);
                localObject17 = ((e)localObject8).i();
                do
                {
                  if (localObject17 == null) {
                    break;
                  }
                  localObject19 = this.b.r((d)localObject17);
                  if (i11 != 0) {
                    break label4800;
                  }
                  if (((a.d.w)localObject19).a != ((a.d.w)localObject15).a)
                  {
                    localObject19 = new a.d.w(((a.d.w)localObject19).a, -2000.0D);
                    localv.a(localObject17, localObject9, (a.d.w)localObject19, (a.d.w)localObject15);
                  }
                  localObject17 = ((d)localObject17).j();
                } while (i11 == 0);
                localObject17 = null;
                if (i12 == 0)
                {
                  if (i12 != 0) {
                    break label4800;
                  }
                  if (!this.j) {}
                }
                else
                {
                  localObject17 = new Object();
                }
                localObject19 = ((e)localObject8).h();
                do
                {
                  if (localObject19 == null) {
                    break;
                  }
                  localObject20 = ((d)localObject19).f();
                  localObject23 = new a.d.w(d19, -2000.0D);
                  localObject26 = this.b.s((d)localObject19);
                  if (i11 != 0) {
                    break label4800;
                  }
                  if (((a.d.w)localObject26).a != ((a.d.w)localObject23).a)
                  {
                    localObject26 = new a.d.w(((a.d.w)localObject26).a, 2000.0D);
                    if (i12 == 0)
                    {
                      if (this.j) {
                        localv.a(localObject19, localObject17, (a.d.w)localObject23, (a.d.w)localObject26);
                      }
                    }
                    else
                    {
                      if (i12 != 0) {
                        continue;
                      }
                      if (i11 == 0) {
                        break label4758;
                      }
                    }
                    localv.a(localObject19, (a.d.w)localObject23, (a.d.w)localObject26);
                  }
                  localObject19 = ((d)localObject19).i();
                } while (i11 == 0);
              }
              localv6 = localv6.a();
              if (i12 != 0) {
                break label4800;
              }
              if (i11 == 0) {
                break label4339;
              }
              localv.b();
            } while (i12 != 0);
            int i9 = localv.d();
            if (i12 == 0)
            {
              if (i9 > 0)
              {
                d15 = Math.max(d15, d3);
                d16 = Math.max(d16, d3);
                d8 += (i9 - 1) * d3 + d15 + d16;
                if (i12 != 0) {
                  break label4906;
                }
                if (i11 == 0) {
                  break label4896;
                }
              }
              d16 = d15 = 0.0D;
              if (i12 != 0) {}
            }
            else if (d2 <= 0.0D)
            {
              if (i12 != 0) {
                break label4906;
              }
              if (d7 <= 0.0D) {
                break label4896;
              }
            }
            d8 += d3;
            if (i12 == 0) {
              if (d8 < d10)
              {
                d17 = d13 + d1 + d7 + d15 + (d10 - d8) * 0.5D;
                if (i12 != 0) {
                  break label4959;
                }
                d1 += d10 - d8;
                if (i11 == 0) {
                  break label4961;
                }
              }
            }
            d17 = d13 + d1 + d7 + d15;
            localObject12 = localc_1.a.f();
            do
            {
              if (localObject12 == null) {
                break label6662;
              }
              localObject14 = (e)((a.c.v)localObject12).c();
              if (i12 != 0) {
                break label543;
              }
              if (i11 != 0) {
                break;
              }
              localObject15 = ((e)localObject14).c() == 2 ? null : this.s.c((e)localObject14);
              if (localObject15 == null)
              {
                localObject17 = ((e)localObject14).i();
                localObject19 = this.b.r((d)localObject17);
                localObject20 = this.b.s(((e)localObject14).h());
                this.b.a((e)localObject14, ((a.d.w)localObject19).a, d17);
                if (i12 != 0) {
                  continue;
                }
                if (((a.d.w)localObject19).a != ((a.d.w)localObject20).a)
                {
                  double d30 = d17 + localv.d(localObject17) * d3;
                  this.b.d((d)localObject17, new a.d.w(((a.d.w)localObject19).a, d30));
                  this.b.c(((e)localObject14).h(), new a.d.w(((a.d.w)localObject20).a, d30));
                  if (i12 != 0) {
                    continue;
                  }
                  if (i11 == 0) {}
                }
              }
              else
              {
                double d25 = this.b.m((e)localObject14);
                if (localv.b(localObject15))
                {
                  double d27 = d17 + localv.e(localObject15) * d3;
                  this.b.a((e)localObject14, d25, d27);
                  localObject26 = ((e)localObject14).i();
                  do
                  {
                    if (localObject26 == null) {
                      break;
                    }
                    localw3 = this.b.r((d)localObject26);
                    if (i11 != 0) {
                      break label6695;
                    }
                    if (localw3.a != d25)
                    {
                      d36 = d17 + localv.d(localObject26) * d3;
                      this.b.d((d)localObject26, new a.d.w(localw3.a, d36));
                      if (i12 != 0) {
                        continue;
                      }
                      if (i11 == 0) {}
                    }
                    else
                    {
                      this.b.d((d)localObject26, new a.d.w(localw3.a, d27));
                    }
                    localObject26 = ((d)localObject26).j();
                  } while (i11 == 0);
                }
                if (i12 != 0) {
                  break label6519;
                }
                this.b.a((e)localObject14, d25, d17);
                localObject21 = ((e)localObject14).h();
                do
                {
                  if (localObject21 == null) {
                    break;
                  }
                  localObject24 = ((d)localObject21).f();
                  localObject26 = this.b.s((d)localObject21);
                  if (i11 != 0) {
                    break label6695;
                  }
                  if (((a.d.w)localObject26).a != d25)
                  {
                    double d34 = d17 + localv.d(localObject21) * d3;
                    localz2 = a((d)localObject21);
                    localz2.add(new a.d.w(d25, d34));
                    localz2.add(new a.d.w(((a.d.w)localObject26).a, d34));
                  }
                  localObject21 = ((d)localObject21).i();
                } while (i11 == 0);
              }
              localObject12 = ((a.c.v)localObject12).a();
              if (i12 != 0) {
                break label6695;
              }
            } while (i11 == 0);
          }
          this.m.h(((a.c.v)localObject1).a());
          if (i12 != 0) {
            break label6728;
          }
          a.c.v localv7 = localc_1.a.f();
          if (localv7 != null) {}
          Object localObject18;
          do
          {
            localObject8 = (e)localv7.c();
            if (i12 != 0) {
              break label543;
            }
            if (i11 != 0) {
              break;
            }
            localObject9 = ((e)localObject8).c() == 2 ? null : this.s.c((e)localObject8);
            if (localObject9 == null)
            {
              localObject12 = this.b.r(((e)localObject8).i());
              localObject14 = this.b.s(((e)localObject8).h());
              if (i12 != 0) {
                break label5962;
              }
              if (((a.d.w)localObject12).a != ((a.d.w)localObject14).a)
              {
                localObject12 = new a.d.w(((a.d.w)localObject12).a, -2000.0D);
                localObject14 = new a.d.w(((a.d.w)localObject14).a, 2000.0D);
                localv.a(((e)localObject8).h(), (a.d.w)localObject12, (a.d.w)localObject14);
                if (i12 != 0) {
                  break label5962;
                }
                if (i11 == 0) {}
              }
            }
            else
            {
              double d20 = this.b.m((e)localObject8);
              localObject15 = new a.d.w(d20, 2000.0D);
              localObject18 = ((e)localObject8).h();
              do
              {
                if (localObject18 == null) {
                  break;
                }
                localObject19 = this.b.s((d)localObject18);
                if (i11 != 0) {
                  break label5978;
                }
                if (((a.d.w)localObject15).a != ((a.d.w)localObject19).a)
                {
                  localObject19 = new a.d.w(((a.d.w)localObject19).a, 2000.0D);
                  localv.a(localObject18, localObject9, (a.d.w)localObject15, (a.d.w)localObject19);
                }
                localObject18 = ((d)localObject18).i();
              } while (i11 == 0);
              localObject18 = null;
              if (i12 == 0)
              {
                if (i12 != 0) {
                  break label5978;
                }
                if (!this.j) {}
              }
              else
              {
                localObject18 = new Object();
              }
              localObject19 = ((e)localObject8).i();
              do
              {
                if (localObject19 == null) {
                  break;
                }
                localObject21 = ((d)localObject19).e();
                localObject24 = new a.d.w(d20, 2000.0D);
                localObject26 = this.b.r((d)localObject19);
                if (i11 != 0) {
                  break label5978;
                }
                if (((a.d.w)localObject26).a != ((a.d.w)localObject24).a)
                {
                  localObject26 = new a.d.w(((a.d.w)localObject26).a, -2000.0D);
                  if (i12 == 0)
                  {
                    if (this.j) {
                      localv.a(localObject19, localObject18, (a.d.w)localObject26, (a.d.w)localObject24);
                    }
                  }
                  else
                  {
                    if (i12 != 0) {
                      continue;
                    }
                    if (i11 == 0) {
                      break label5936;
                    }
                  }
                  localv.a(localObject19, (a.d.w)localObject26, (a.d.w)localObject24);
                }
                localObject19 = ((d)localObject19).j();
              } while (i11 == 0);
            }
            localv7 = localv7.a();
            if (i12 != 0) {
              break label5978;
            }
            if (i11 == 0) {
              break label5517;
            }
            localv.b();
          } while (i12 != 0);
          int i10 = localv.d();
          if (i12 == 0)
          {
            if (i10 > 0)
            {
              d15 = Math.max(d15, d3);
              d16 = Math.max(d16, d3);
              d8 += (i10 - 1) * d3 + d15 + d16;
              if (i12 != 0) {
                break label6084;
              }
              if (i11 == 0) {
                break label6074;
              }
            }
            d16 = d15 = 0.0D;
            if (i12 != 0) {}
          }
          else if (d2 <= 0.0D)
          {
            if (i12 != 0) {
              break label6084;
            }
            if (d7 <= 0.0D) {
              break label6074;
            }
          }
          d8 += d3;
          if (i12 == 0) {
            if (d8 < d10)
            {
              d17 = d13 + d1 + d7 + d15 + (d10 - d8) * 0.5D;
              if (i12 != 0) {
                break label6137;
              }
              d1 += d10 - d8;
              if (i11 == 0) {
                break label6139;
              }
            }
          }
          d17 = d13 + d1 + d7 + d15;
          a.c.v localv8 = localc_1.a.f();
          do
          {
            if (localv8 == null) {
              break label6662;
            }
            localObject14 = (e)localv8.c();
            if (i11 != 0) {
              break;
            }
            localObject15 = ((e)localObject14).c() == 2 ? null : this.s.c((e)localObject14);
            if (localObject15 == null)
            {
              localObject18 = ((e)localObject14).h();
              localObject19 = this.b.s((d)localObject18);
              localObject21 = this.b.r(((e)localObject14).i());
              this.b.a((e)localObject14, ((a.d.w)localObject21).a, d17);
              if (i12 != 0) {
                continue;
              }
              if (((a.d.w)localObject21).a != ((a.d.w)localObject19).a)
              {
                double d31 = d17 + localv.d(localObject18) * d3;
                this.b.d(((e)localObject14).i(), new a.d.w(((a.d.w)localObject21).a, d31));
                this.b.c((d)localObject18, new a.d.w(((a.d.w)localObject19).a, d31));
                if (i12 != 0) {
                  continue;
                }
                if (i11 == 0) {}
              }
            }
            else
            {
              double d26 = this.b.m((e)localObject14);
              if (localv.b(localObject15))
              {
                double d28 = d17 + localv.e(localObject15) * d3;
                this.b.a((e)localObject14, d26, d28);
                localObject26 = ((e)localObject14).h();
                do
                {
                  if (localObject26 == null) {
                    break;
                  }
                  a.d.w localw4 = this.b.s((d)localObject26);
                  if (i11 != 0) {
                    break label6695;
                  }
                  if (localw4.a != d26)
                  {
                    d36 = d17 + localv.d(localObject26) * d3;
                    this.b.c((d)localObject26, new a.d.w(localw4.a, d36));
                    if (i12 != 0) {
                      continue;
                    }
                    if (i11 == 0) {}
                  }
                  else
                  {
                    this.b.c((d)localObject26, new a.d.w(localw4.a, d28));
                  }
                  localObject26 = ((d)localObject26).i();
                } while (i11 == 0);
              }
              if (i12 != 0) {
                break label5351;
              }
              this.b.a((e)localObject14, d26, d17);
              d locald2 = ((e)localObject14).i();
              do
              {
                if (locald2 == null) {
                  break;
                }
                e locale4 = locald2.e();
                localObject26 = this.b.r(locald2);
                if (i11 != 0) {
                  break label6695;
                }
                if (((a.d.w)localObject26).a != d26)
                {
                  double d35 = d17 + localv.d(locald2) * d3;
                  localz2 = a(locald2);
                  localz2.add(new a.d.w(((a.d.w)localObject26).a, d35));
                  localz2.add(new a.d.w(d26, d35));
                }
                locald2 = locald2.j();
              } while (i11 == 0);
            }
            localv8 = localv8.a();
            if (i12 != 0) {
              break label6695;
            }
          } while (i11 == 0);
        } while (i12 != 0);
        d1 += d8 + (d13 - d6);
        if (i12 != 0) {
          break label6735;
        }
        if (i11 == 0) {}
      }
      else
      {
        double d9 = d7 < this.Q ? this.Q - d7 : 0.0D;
        localObject2.d += d9;
      }
      localObject1 = ((a.c.v)localObject1).a();
      i1++;
      if (i11 == 0) {
        break;
      }
      this.r.c();
      this.r.g();
    } while (i12 != 0);
    label540:
    label543:
    label545:
    label547:
    label599:
    label984:
    label994:
    label1379:
    label1770:
    label1772:
    label3829:
    label3836:
    localObject1 = this.m.f();
    label643:
    label645:
    label676:
    label1249:
    label4339:
    label6137:
    label6139:
    if (localObject1 != null) {}
    label793:
    label1442:
    label1444:
    label1716:
    label1726:
    label3033:
    label3035:
    label4959:
    label4961:
    label5351:
    label6519:
    label6776:
    label7421:
    do
    {
      localObject2 = (c_)((a.c.v)localObject1).c();
      localObject3 = ((c_)localObject2).a;
      d4 = ((c_)localObject2).d + ((c_)localObject2).f;
      d5 = ((c_)localObject2).b - ((c_)localObject2).e;
      do
      {
        if (i11 != 0) {
          break label7461;
        }
        a.c.v localv2 = ((a.c.bb)localObject3).f();
        do
        {
          if (localv2 == null) {
            break label7421;
          }
          e locale1 = (e)localv2.c();
          if (i11 != 0) {
            break;
          }
          if (this.x.get(locale1) == null)
          {
            localObject4 = (d_)this.I.get(locale1);
            Object localObject5;
            if ((i12 != 0) || (localObject4 != null))
            {
              ((d_)localObject4).a(this.b.d(locale1));
              if (i12 == 0)
              {
                if (!this.n)
                {
                  localObject5 = ((d_)localObject4).c(0).l.f();
                  a.d.w localw2;
                  do
                  {
                    do
                    {
                      if (localObject5 == null) {
                        break;
                      }
                      localObject6 = (d)((a.c.v)localObject5).c();
                      localw2 = this.b.s((d)localObject6);
                      if (i11 != 0) {
                        break label7243;
                      }
                      if (d5 + 12.0D < localw2.b) {
                        a((d)localObject6).b(new a.d.w(localw2.a, d5));
                      }
                      localObject5 = ((a.c.v)localObject5).a();
                    } while (i11 == 0);
                  } while (i12 != 0);
                  localObject5 = ((d_)localObject4).c(2).l.f();
                  do
                  {
                    if (localObject5 == null) {
                      break;
                    }
                    localObject6 = (d)((a.c.v)localObject5).c();
                    localw2 = this.b.r((d)localObject6);
                    if (i11 != 0) {
                      break label7243;
                    }
                    if (d4 - 12.0D > localw2.b) {
                      a((d)localObject6).a(new a.d.w(localw2.a, d4));
                    }
                    localObject5 = ((a.c.v)localObject5).a();
                  } while (i11 == 0);
                }
                c(locale1, ((d_)localObject4).a(0), d4);
                c(locale1, ((d_)localObject4).b(0), d4);
                e(locale1, ((d_)localObject4).a(2), d5);
                e(locale1, ((d_)localObject4).b(2), d5);
                a(locale1, ((d_)localObject4).b(1), d4);
                b(locale1, ((d_)localObject4).a(1), d5);
                a(locale1, ((d_)localObject4).a(3), d4);
                b(locale1, ((d_)localObject4).b(3), d5);
                if (i12 != 0) {
                  break label7243;
                }
              }
              if (i12 != 0) {
                continue;
              }
            }
            if ((i11 != 0) && (!this.n))
            {
              localObject5 = locale1.i();
              do
              {
                do
                {
                  if (localObject5 == null) {
                    break label7325;
                  }
                  localObject6 = this.b.s((d)localObject5);
                  if (i11 != 0) {
                    break;
                  }
                  if (d5 + 12.0D < ((a.d.w)localObject6).b) {
                    a((d)localObject5).b(new a.d.w(((a.d.w)localObject6).a, d5));
                  }
                  localObject5 = ((d)localObject5).j();
                } while (i11 == 0);
              } while (i12 != 0);
              localObject5 = locale1.h();
              do
              {
                if (localObject5 == null) {
                  break label7409;
                }
                localObject6 = this.b.r((d)localObject5);
                if (i11 != 0) {
                  break;
                }
                if (d4 - 12.0D > ((a.d.w)localObject6).b) {
                  a((d)localObject5).a(new a.d.w(((a.d.w)localObject6).a, d4));
                }
                localObject5 = ((d)localObject5).i();
              } while (i11 == 0);
            }
          }
          localv2 = localv2.a();
        } while (i11 == 0);
        localObject1 = ((a.c.v)localObject1).a();
      } while (i12 != 0);
      if (i11 == 0) {
        break;
      }
      this.q.c();
    } while (i12 != 0);
    label2436:
    label2446:
    label2461:
    label2874:
    label4289:
    label4313:
    label5978:
    label6764:
    label7409:
    this.q.d(this.m);
    label2832:
    label2844:
    label2980:
    label4784:
    label4800:
    label5962:
    label6735:
    localObject1 = this.C.entrySet().iterator();
    label2970:
    label4896:
    label4906:
    label5936:
    label6074:
    label6084:
    label6728:
    label7243:
    break label7541;
    label3846:
    label4758:
    label6680:
    label6695:
    label7477:
    if (((Iterator)localObject1).hasNext()) {}
    label5517:
    label6677:
    label6678:
    label6814:
    label7461:
    label7541:
    do
    {
      localObject2 = (Map.Entry)((Iterator)localObject1).next();
      localObject3 = (d)((Map.Entry)localObject2).getKey();
      z localz1 = (z)((Map.Entry)localObject2).getValue();
      zb localzb = this.b.e(localObject3);
      a.c.v localv1 = localz1.f();
      if (localv1 == null) {
        break label7477;
      }
      a.d.w localw1 = (a.d.w)localv1.c();
      localzb.a(localw1.a, localw1.b);
      localv1 = localv1.a();
      if (i12 == 0)
      {
        if (((i12 == 0) && (i11 != 0)) || ((i12 == 0) && (i11 != 0))) {
          return;
        }
        if (i11 == 0) {
          break;
        }
        this.C = null;
        this.b.a(this.I);
        this.b.a(this.J);
      }
    } while (i12 != 0);
    label6662:
    label7325:
    this.b.a(this.K);
  }
  
  private void a(e parame, e_ parame_, double paramDouble)
  {
    int i2 = f.o;
    int i1 = f.n;
    a.c.v localv = parame_.l.f();
    label168:
    do
    {
      if (localv == null) {
        break;
      }
      d locald = (d)localv.c();
      z localz = a(locald);
      e locale = locald.e();
      double d1 = this.b.r(locald).a;
      this.b.a(locald, parame, locald.f());
      if (i2 == 0)
      {
        if (e(locald)) {
          this.b.a(locald, (a.d.w)this.J.get(locald));
        }
      }
      else
      {
        d2 = this.b.r(locald).b;
        if (i2 != 0) {
          continue;
        }
        if (i1 == 0) {
          break label168;
        }
      }
      a.d.w localw = parame_.c(parame_.a(), 0.0D);
      this.b.c(locald, localw);
      double d2 = localw.b;
      localz.a(new a.d.w(d1, paramDouble));
      localz.a(new a.d.w(d1, d2));
      this.b.a(locale);
      localv = localv.a();
    } while (i1 == 0);
  }
  
  private void b(e parame, e_ parame_, double paramDouble)
  {
    int i2 = f.o;
    int i1 = f.n;
    a.c.v localv = parame_.l.f();
    label168:
    do
    {
      if (localv == null) {
        break;
      }
      d locald = (d)localv.c();
      z localz = a(locald);
      e locale = locald.f();
      double d1 = this.b.s(locald).a;
      this.b.a(locald, locald.e(), parame);
      if (i2 == 0)
      {
        if (f(locald)) {
          this.b.b(locald, (a.d.w)this.K.get(locald));
        }
      }
      else
      {
        d2 = this.b.s(locald).b;
        if (i2 != 0) {
          continue;
        }
        if (i1 == 0) {
          break label168;
        }
      }
      a.d.w localw = parame_.c(parame_.a(), 0.0D);
      this.b.d(locald, localw);
      double d2 = localw.b;
      localz.b(new a.d.w(d1, paramDouble));
      localz.b(new a.d.w(d1, d2));
      this.b.a(locale);
      localv = localv.a();
    } while (i1 == 0);
  }
  
  private void c(e parame, e_ parame_, double paramDouble)
  {
    int i2 = f.o;
    int i1 = f.n;
    a.c.v localv = parame_.l.f();
    label179:
    do
    {
      if (localv == null) {
        break;
      }
      d locald = (d)localv.c();
      z localz = a(locald);
      double d3 = parame_.f(0.0D, parame_.b());
      e locale = locald.e();
      double d1 = this.b.r(locald).a;
      this.b.a(locald, parame, locald.f());
      if (i2 == 0)
      {
        if (e(locald)) {
          this.b.a(locald, (a.d.w)this.J.get(locald));
        }
      }
      else
      {
        d2 = this.b.r(locald).a;
        if (i2 != 0) {
          continue;
        }
        if (i1 == 0) {
          break label179;
        }
      }
      a.d.w localw = parame_.c(parame_.a(), 0.0D);
      this.b.c(locald, localw);
      double d2 = localw.a;
      localz.a(new a.d.w(d1, paramDouble));
      localz.a(new a.d.w(d1, d3));
      localz.a(new a.d.w(d2, d3));
      this.b.a(locale);
      localv = localv.a();
    } while (i1 == 0);
  }
  
  private void e(e parame, e_ parame_, double paramDouble)
  {
    int i2 = f.o;
    int i1 = f.n;
    a.c.v localv = parame_.l.f();
    label179:
    do
    {
      if (localv == null) {
        break;
      }
      d locald = (d)localv.c();
      z localz = a(locald);
      double d3 = parame_.f(0.0D, parame_.b());
      e locale = locald.f();
      double d1 = this.b.s(locald).a;
      this.b.a(locald, locald.e(), parame);
      if (i2 == 0)
      {
        if (f(locald)) {
          this.b.b(locald, (a.d.w)this.K.get(locald));
        }
      }
      else
      {
        d2 = this.b.s(locald).a;
        if (i2 != 0) {
          continue;
        }
        if (i1 == 0) {
          break label179;
        }
      }
      a.d.w localw = parame_.c(parame_.a(), 0.0D);
      this.b.d(locald, localw);
      double d2 = localw.a;
      localz.b(new a.d.w(d1, paramDouble));
      localz.b(new a.d.w(d1, d3));
      localz.b(new a.d.w(d2, d3));
      this.b.a(locale);
      localv = localv.a();
    } while (i1 == 0);
  }
  
  private z a(d paramd)
  {
    z localz = (z)this.C.get(paramd);
    if (f.o == 0) {
      if (localz == null)
      {
        localz = new z();
        this.C.put(paramd, localz);
      }
    }
    return localz;
  }
  
  private void a(e_ parame_, e parame)
  {
    int i3 = f.o;
    int i2 = f.n;
    int i1 = 0;
    a.c.v localv = parame_.l.f();
    label148:
    do
    {
      if (localv == null) {
        break;
      }
      d locald = (d)localv.c();
      if (i3 == 0)
      {
        if (!this.b.j(locald)) {
          this.b.g(locald);
        }
      }
      else {
        i1 = 1;
      }
      if (locald.e() == parame)
      {
        if (i3 != 0) {
          break label148;
        }
        if (!e(locald))
        {
          this.b.c(locald, parame_.c(parame_.a(), 0.0D));
          if (i3 != 0) {
            break label148;
          }
          if (i2 == 0) {}
        }
      }
      else
      {
        if (i3 != 0) {
          break label148;
        }
        if (!f(locald)) {
          this.b.d(locald, parame_.c(parame_.a(), 0.0D));
        }
      }
      if (i3 == 0)
      {
        if (i1 != 0)
        {
          i1 = 0;
          this.b.f(locald);
        }
        localv = localv.a();
      }
    } while (i2 == 0);
  }
  
  private void c(e_ parame_, e parame)
  {
    int i4 = f.o;
    int i3 = f.n;
    if (i4 == 0) {
      if (parame_.l.size() < 1) {
        return;
      }
    }
    int[] arrayOfInt = new int[1];
    double[] arrayOfDouble = new double[2];
    double d1 = parame_.g;
    double d2 = parame_.f();
    Object localObject = null;
    a.c.v localv1 = a(parame_.l.f(), parame, arrayOfInt);
    int i1 = arrayOfInt[0] - (localv1 != null ? 0 : 1);
    arrayOfDouble[0] = d1;
    arrayOfDouble[1] = d2;
    a((a.c.v)localObject, localv1, parame_, parame, arrayOfDouble);
    if (i4 == 0)
    {
      if (i1 > 0) {
        parame_.j = ((arrayOfDouble[1] - arrayOfDouble[0]) / i1);
      }
      parame_.g(arrayOfDouble[0]);
    }
    int i2 = 0;
    a.c.v localv2 = parame_.l.f();
    label520:
    label522:
    do
    {
      if (localv2 == null) {
        break;
      }
      d locald = (d)localv2.c();
      if (i4 == 0)
      {
        if (!this.b.j(locald)) {
          this.b.g(locald);
        }
      }
      else {
        i2 = 1;
      }
      if (locald.e() == parame)
      {
        if (i4 == 0)
        {
          if (e(locald))
          {
            localObject = localv2;
            localv1 = a(localv2.a(), parame, arrayOfInt);
            i1 = arrayOfInt[0] + (localObject != null ? 1 : 0) + (localv1 != null ? 1 : 0) - 1;
            arrayOfDouble[0] = d1;
            arrayOfDouble[1] = d2;
            a((a.c.v)localObject, localv1, parame_, parame, arrayOfDouble);
            if (i4 != 0) {
              break label522;
            }
            if (i1 > 0)
            {
              parame_.j = ((arrayOfDouble[1] - arrayOfDouble[0]) / i1);
              parame_.g(arrayOfDouble[0] + parame_.j);
              if (i4 != 0) {
                break label522;
              }
              if (i3 == 0) {}
            }
          }
          else
          {
            this.b.c(locald, parame_.c(parame_.a(), 0.0D));
          }
        }
        else
        {
          if (i4 != 0) {
            break label522;
          }
          if (i3 == 0) {}
        }
      }
      else
      {
        if (i4 == 0) {
          if (f(locald))
          {
            localObject = localv2;
            localv1 = a(localv2.a(), parame, arrayOfInt);
            i1 = arrayOfInt[0] + (localObject != null ? 1 : 0) + (localv1 != null ? 1 : 0) - 1;
            arrayOfDouble[0] = d1;
            arrayOfDouble[1] = d2;
            a((a.c.v)localObject, localv1, parame_, parame, arrayOfDouble);
            if (i4 != 0) {
              break label522;
            }
            if (i1 <= 0) {
              break label520;
            }
            parame_.j = ((arrayOfDouble[1] - arrayOfDouble[0]) / i1);
            parame_.g(arrayOfDouble[0] + parame_.j);
            if (i4 != 0) {
              break label522;
            }
            if (i3 == 0) {
              break label520;
            }
          }
        }
        this.b.d(locald, parame_.c(parame_.a(), 0.0D));
      }
      if (i4 == 0)
      {
        if (i2 != 0)
        {
          i2 = 0;
          this.b.f(locald);
        }
        localv2 = localv2.a();
      }
    } while (i3 == 0);
  }
  
  private void a(a.c.v paramv1, a.c.v paramv2, e_ parame_, e parame, double[] paramArrayOfDouble)
  {
    int i1 = f.o;
    d locald;
    a.d.w localw;
    if (i1 == 0) {
      if (paramv2 != null)
      {
        locald = (d)paramv2.c();
        localw = parame == locald.e() ? this.b.r(locald) : this.b.s(locald);
        paramArrayOfDouble[1] = parame_.d(localw.a, localw.b);
      }
    }
    if ((i1 != 0) || (paramv1 != null))
    {
      locald = (d)paramv1.c();
      localw = parame == locald.e() ? this.b.r(locald) : this.b.s(locald);
      paramArrayOfDouble[0] = parame_.d(localw.a, localw.b);
    }
  }
  
  private a.c.v a(a.c.v paramv, e parame, int[] paramArrayOfInt)
  {
    int i2 = f.o;
    if (i2 == 0) {
      if (paramv == null)
      {
        paramArrayOfInt[0] = 0;
        return null;
      }
    }
    d locald = (d)paramv.c();
    boolean bool = locald.e() == parame ? e(locald) : f(locald);
    if (i2 == 0) {
      if (bool)
      {
        paramArrayOfInt[0] = 0;
        return paramv;
      }
    }
    int i1 = 0;
    while (!bool)
    {
      paramv = paramv.a();
      i1++;
      if (i2 == 0) {
        if (paramv == null)
        {
          paramArrayOfInt[0] = i1;
          return null;
        }
      }
      locald = (d)paramv.c();
      bool = locald.e() == parame ? e(locald) : f(locald);
      if (bool)
      {
        paramArrayOfInt[0] = i1;
        return paramv;
      }
    }
    return null;
  }
  
  public ab o()
  {
    return this.q.d();
  }
  
  private cd a(e parame)
  {
    if (f.o == 0) {
      if (b(parame)) {
        return b(parame.h());
      }
    }
    return d(parame.i());
  }
  
  cd b(d paramd)
  {
    if (f.o == 0) {
      if (this.A == null) {
        return O;
      }
    }
    return (cd)this.A.get(paramd);
  }
  
  cd d(d paramd)
  {
    if (f.o == 0) {
      if (this.B == null) {
        return P;
      }
    }
    return (cd)this.B.get(paramd);
  }
  
  private boolean e(d paramd)
  {
    int i1 = f.o;
    if (paramd == null) {
      return false;
    }
    cd localcd = b(paramd);
    if ((i1 != 0) || (localcd != null)) {
      if (i1 != 0) {}
    }
    return localcd.a();
  }
  
  private boolean f(d paramd)
  {
    int i1 = f.o;
    if (paramd == null) {
      return false;
    }
    cd localcd = d(paramd);
    if ((i1 != 0) || (localcd != null)) {
      if (i1 != 0) {}
    }
    return localcd.a();
  }
  
  private boolean b(e parame)
  {
    if (f.o == 0) {}
    return parame.e() == 1;
  }
  
  private boolean c(e parame)
  {
    if (f.o == 0) {}
    return parame.d() == 1;
  }
  
  private int a(a.c.bb parambb)
  {
    int i3 = f.o;
    int i2 = f.n;
    int i1 = 0;
    do
    {
      for (a.c.v localv = parambb.f(); i2 == 0; localv = localv.a())
      {
        if (localv == null) {
          break;
        }
        if (i2 != 0) {
          break label59;
        }
        if (c((e)localv.c())) {
          i1++;
        }
      }
    } while (i3 != 0);
    label59:
    return i1;
  }
  
  static int a(byte paramByte, int paramInt)
  {
    if (f.o == 0) {
      switch (paramByte)
      {
      case 0: 
      case 3: 
      case 5: 
      case 6: 
      case 7: 
      default: 
        return paramInt;
      case 1: 
        return 0;
      case 4: 
        return 1;
      case 2: 
        return 2;
      }
    }
    return 3;
  }
  
  public double p()
  {
    return this.Q;
  }
  
  public void c(double paramDouble)
  {
    this.Q = paramDouble;
    this.q.c(paramDouble);
    this.r.c(paramDouble);
  }
  
  public void d(double paramDouble)
  {
    this.R = paramDouble;
  }
  
  public boolean q()
  {
    return this.j;
  }
  
  public void e(boolean paramBoolean)
  {
    this.j = paramBoolean;
  }
  
  class a_
    implements Comparator, l.j_
  {
    Comparator a;
    Comparator b;
    
    a_(Comparator paramComparator1, Comparator paramComparator2)
    {
      this.a = paramComparator1;
      this.b = paramComparator2;
    }
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      int i = f.o;
      cd localcd1 = x.this.d((d)paramObject1);
      cd localcd2 = x.this.d((d)paramObject2);
      if (i == 0) {
        if (localcd1 != null)
        {
          if (i != 0) {
            break label90;
          }
          if (localcd1.a())
          {
            if ((i != 0) || (localcd2 != null))
            {
              if (i != 0) {
                break label87;
              }
              if (localcd2.a()) {
                return this.b.compare(paramObject1, paramObject2);
              }
            }
            label87:
            return -1;
          }
        }
      }
      label90:
      if ((i != 0) || (localcd2 != null))
      {
        if (i != 0) {
          break label124;
        }
        if (localcd2.a()) {
          return 1;
        }
      }
      label124:
      return this.a.compare(paramObject1, paramObject2);
    }
  }
  
  class b_
    implements Comparator, l.j_
  {
    Comparator a;
    Comparator b;
    
    b_(Comparator paramComparator1, Comparator paramComparator2)
    {
      this.a = paramComparator1;
      this.b = paramComparator2;
    }
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      int i = f.o;
      cd localcd1 = x.this.b((d)paramObject1);
      cd localcd2 = x.this.b((d)paramObject2);
      if (i == 0) {
        if (localcd1 != null)
        {
          if (i != 0) {
            break label90;
          }
          if (localcd1.a())
          {
            if ((i != 0) || (localcd2 != null))
            {
              if (i != 0) {
                break label87;
              }
              if (localcd2.a()) {
                return this.b.compare(paramObject1, paramObject2);
              }
            }
            label87:
            return -1;
          }
        }
      }
      label90:
      if ((i != 0) || (localcd2 != null))
      {
        if (i != 0) {
          break label124;
        }
        if (localcd2.a()) {
          return 1;
        }
      }
      label124:
      return this.a.compare(paramObject1, paramObject2);
    }
  }
  
  static final class c_
  {
    public a.c.bb a;
    public double b;
    public double d;
    public double e;
    public double f;
    public double g;
    
    public c_(a.c.bb parambb)
    {
      this.a = parambb;
    }
  }
  
  public static class e_
  {
    int a;
    boolean b;
    double c;
    double d;
    public double e;
    public double f;
    double g = 0.0D;
    double h = 20.0D;
    double i = 0.0D;
    double j = 20.0D;
    double k = 20.0D;
    public ab l = new ab();
    public static int m;
    
    e_(double paramDouble1, double paramDouble2, int paramInt, boolean paramBoolean)
    {
      this.a = paramInt;
      this.b = paramBoolean;
      this.d = paramDouble1;
      this.c = paramDouble2;
    }
    
    public void a(double paramDouble)
    {
      this.e = paramDouble;
    }
    
    public void b(double paramDouble)
    {
      this.h = paramDouble;
    }
    
    public void c(double paramDouble)
    {
      this.j = paramDouble;
    }
    
    public void d(double paramDouble)
    {
      a(paramDouble, paramDouble);
    }
    
    public void a(double paramDouble1, double paramDouble2)
    {
      this.k = paramDouble2;
      b(paramDouble1);
    }
    
    public double a()
    {
      this.e += this.j;
      return this.e;
    }
    
    public double b()
    {
      int n = f.o;
      if (n == 0) {
        if (this.f < this.h)
        {
          if (n != 0) {
            break label64;
          }
          this.f = Math.max(this.f + this.k, this.h);
          if (f.n == 0) {
            break label63;
          }
        }
      }
      this.f += this.k;
      label63:
      label64:
      return this.f;
    }
    
    public void e(double paramDouble)
    {
      this.f = paramDouble;
    }
    
    public void b(double paramDouble1, double paramDouble2)
    {
      g(paramDouble1);
      f(paramDouble2);
    }
    
    public void f(double paramDouble)
    {
      this.i = paramDouble;
      this.f = paramDouble;
    }
    
    public void g(double paramDouble)
    {
      this.g = paramDouble;
      this.e = (paramDouble - this.j);
    }
    
    public void c()
    {
      f(this.i);
      g(this.g);
    }
    
    public double d()
    {
      if (f.o == 0) {
        if (this.l.size() < 1) {
          return this.i;
        }
      }
      return Math.max(this.i + this.k * this.l.size(), this.h + this.k * (this.l.size() - 1));
    }
    
    public double a(int paramInt)
    {
      if (paramInt == 0) {
        return this.i;
      }
      return Math.max(this.i + this.k * paramInt, this.h + this.k * (paramInt - 1));
    }
    
    public double e()
    {
      if (f.o == 0) {
        if (this.l.size() == 0) {
          return this.i;
        }
      }
      return Math.max(this.i + this.k * this.l.size(), this.h + this.k * (this.l.size() - 1));
    }
    
    public double f()
    {
      if (f.o == 0) {
        if (this.l.size() < 1) {
          return this.g;
        }
      }
      return this.g + this.j * (this.l.size() - 1);
    }
    
    public double g()
    {
      if (f.o == 0) {
        if (this.l.size() < 1) {
          return this.g;
        }
      }
      return this.g + this.j * this.l.size();
    }
    
    public a.d.w c(double paramDouble1, double paramDouble2)
    {
      if (f.o == 0) {
        if (this.b)
        {
          switch (this.a)
          {
          case 0: 
            return new a.d.w(this.d - paramDouble1, this.c - paramDouble2);
          case 1: 
            return new a.d.w(this.d + paramDouble2, this.c - paramDouble1);
          case 2: 
            return new a.d.w(this.d + paramDouble1, this.c + paramDouble2);
          case 3: 
            return new a.d.w(this.d - paramDouble2, this.c + paramDouble1);
          }
          throw new RuntimeException("Cannot be!");
        }
      }
      switch (this.a)
      {
      case 0: 
        return new a.d.w(this.d + paramDouble1, this.c - paramDouble2);
      case 1: 
        return new a.d.w(this.d + paramDouble2, this.c + paramDouble1);
      case 2: 
        return new a.d.w(this.d - paramDouble1, this.c + paramDouble2);
      case 3: 
        return new a.d.w(this.d - paramDouble2, this.c - paramDouble1);
      }
      throw new RuntimeException("Cannot be!");
    }
    
    public double d(double paramDouble1, double paramDouble2)
    {
      int n = f.o;
      if (n == 0) {
        if (this.b)
        {
          if (n == 0) {}
          switch (this.a)
          {
          case 0: 
            return this.d - paramDouble1;
          case 1: 
            return this.c - paramDouble2;
          case 2: 
            return paramDouble1 - this.d;
          case 3: 
            return paramDouble2 - this.c;
          }
          throw new RuntimeException("Cannot be!");
        }
      }
      switch (this.a)
      {
      case 0: 
        return paramDouble1 - this.d;
      case 1: 
        return paramDouble2 - this.c;
      case 2: 
        return this.d - paramDouble1;
      case 3: 
        return this.c - paramDouble2;
      }
      throw new RuntimeException("Cannot be!");
    }
    
    public double e(double paramDouble1, double paramDouble2)
    {
      if (f.o == 0) {}
      switch (this.a)
      {
      case 0: 
        return this.c - paramDouble2;
      case 1: 
        return paramDouble1 - this.d;
      case 2: 
        return paramDouble2 - this.c;
      case 3: 
        return this.d - paramDouble1;
      }
      throw new RuntimeException("Cannot be!");
    }
    
    public double f(double paramDouble1, double paramDouble2)
    {
      int n = f.o;
      if (n == 0)
      {
        if (this.b)
        {
          if (n == 0) {}
          switch (this.a)
          {
          case 0: 
            return this.c - paramDouble2;
          case 1: 
            return this.c - paramDouble1;
          case 2: 
            return this.c + paramDouble2;
          case 3: 
            return this.c + paramDouble1;
          }
          throw new RuntimeException("Cannot be!");
        }
        if (n != 0) {
          break label133;
        }
      }
      switch (this.a)
      {
      case 0: 
        return this.c - paramDouble2;
      case 1: 
        return this.c + paramDouble1;
      case 2: 
        return this.c + paramDouble2;
      case 3: 
        label133:
        return this.c - paramDouble1;
      }
      throw new RuntimeException("Cannot be!");
    }
    
    public double g(double paramDouble1, double paramDouble2)
    {
      int n = f.o;
      if (n == 0)
      {
        if (this.b)
        {
          if (n == 0) {}
          switch (this.a)
          {
          case 0: 
            return this.d - paramDouble1;
          case 1: 
            return this.d + paramDouble2;
          case 2: 
            return this.d + paramDouble1;
          case 3: 
            return this.d - paramDouble2;
          }
          throw new RuntimeException("Cannot be!");
        }
        if (n != 0) {
          break label133;
        }
      }
      switch (this.a)
      {
      case 0: 
        return this.d + paramDouble1;
      case 1: 
        return this.d + paramDouble2;
      case 2: 
        return this.d - paramDouble1;
      case 3: 
        label133:
        return this.d - paramDouble2;
      }
      throw new RuntimeException("Cannot be!");
    }
  }
  
  public static class d_
  {
    public x.e_[] a = new x.e_[12];
    public z b = new z();
    private double d;
    private double e;
    public static int f;
    
    public d_(zc paramzc)
    {
      this(paramzc.a(), paramzc.b(), paramzc.c(), paramzc.d());
    }
    
    public d_(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
    {
      this.a[0] = new x.e_(paramDouble1, paramDouble2, 0, false);
      this.a[1] = new x.e_(paramDouble1, paramDouble2, 0, false);
      this.a[2] = new x.e_(paramDouble1 + paramDouble3, paramDouble2, 0, true);
      this.a[3] = new x.e_(paramDouble1 + paramDouble3, paramDouble2, 1, false);
      this.a[4] = new x.e_(paramDouble1 + paramDouble3, paramDouble2, 1, false);
      this.a[5] = new x.e_(paramDouble1 + paramDouble3, paramDouble2 + paramDouble4, 1, true);
      this.a[6] = new x.e_(paramDouble1 + paramDouble3, paramDouble2 + paramDouble4, 2, false);
      this.a[7] = new x.e_(paramDouble1 + paramDouble3, paramDouble2 + paramDouble4, 2, false);
      this.a[8] = new x.e_(paramDouble1, paramDouble2 + paramDouble4, 2, true);
      this.a[9] = new x.e_(paramDouble1, paramDouble2 + paramDouble4, 3, false);
      this.a[10] = new x.e_(paramDouble1, paramDouble2 + paramDouble4, 3, false);
      this.a[11] = new x.e_(paramDouble1, paramDouble2, 3, true);
      this.e = paramDouble3;
      this.d = paramDouble4;
    }
    
    public void a()
    {
      int k = f.o;
      int j = f.n;
      do
      {
        for (int i = 11; j == 0; i--)
        {
          if (i < 0) {
            break;
          }
          this.a[i].c();
        }
      } while (k != 0);
    }
    
    public void a(zc paramzc)
    {
      double d1 = paramzc.a();
      double d2 = paramzc.b();
      double d3 = d1 + paramzc.c();
      double d4 = d2 + paramzc.d();
      this.a[0].d = d1;
      this.a[0].c = d2;
      this.a[1].d = d1;
      this.a[1].c = d2;
      this.a[2].d = d3;
      this.a[2].c = d2;
      this.a[3].d = d3;
      this.a[3].c = d2;
      this.a[4].d = d3;
      this.a[4].c = d2;
      this.a[5].d = d3;
      this.a[5].c = d4;
      this.a[6].d = d3;
      this.a[6].c = d4;
      this.a[7].d = d3;
      this.a[7].c = d4;
      this.a[8].d = d1;
      this.a[8].c = d4;
      this.a[9].d = d1;
      this.a[9].c = d4;
      this.a[10].d = d1;
      this.a[10].c = d4;
      this.a[11].d = d1;
      this.a[11].c = d2;
    }
    
    public x.e_ a(int paramInt)
    {
      return this.a[((4 + paramInt & 0x3) * 3)];
    }
    
    public x.e_ b(int paramInt)
    {
      return this.a[(2 + (4 + paramInt & 0x3) * 3)];
    }
    
    public x.e_ c(int paramInt)
    {
      return this.a[(1 + (4 + paramInt & 0x3) * 3)];
    }
    
    public double d(int paramInt)
    {
      paramInt = 4 + paramInt & 0x3;
      return (paramInt & 0x1) == 1 ? this.d : this.e;
    }
    
    public double e(int paramInt)
    {
      paramInt = (4 + paramInt & 0x3) * 3;
      return Math.max(this.a[(paramInt++)].f, Math.max(this.a[(paramInt++)].f, this.a[(paramInt++)].f));
    }
    
    public double f(int paramInt)
    {
      paramInt = (4 + paramInt & 0x3) * 3;
      return Math.max(this.a[(paramInt++)].d(), Math.max(this.a[(paramInt++)].d(), this.a[(paramInt++)].d()));
    }
    
    public double g(int paramInt)
    {
      paramInt = (4 + paramInt & 0x3) * 3;
      return Math.max(this.a[(paramInt++)].e(), Math.max(this.a[(paramInt++)].e(), this.a[(paramInt++)].e()));
    }
    
    public double h(int paramInt)
    {
      paramInt = (4 + paramInt & 0x3) * 3;
      double d1 = Math.max(this.a[paramInt].k, Math.max(this.a[(paramInt + 1)].k, this.a[(paramInt + 2)].k));
      double d2 = Math.max(this.a[paramInt].f + d1, Math.max(this.a[(paramInt + 1)].f + d1, this.a[(paramInt + 2)].f + d1));
      this.a[(paramInt++)].e(d2);
      this.a[(paramInt++)].e(d2);
      this.a[(paramInt++)].e(d2);
      return d2;
    }
    
    public int i(int paramInt)
    {
      paramInt = 4 + paramInt & 0x3;
      return this.a[(paramInt++)].l.size() + this.a[(paramInt++)].l.size() + this.a[(paramInt++)].l.size();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.getDefaultLicenseInfoEx

 * JD-Core Version:    0.7.0.1

 */